AnsweredAssumed Answered

Runtime packaging for Mac

Question asked by tays01s on Apr 12, 2018
Latest reply on Apr 12, 2018 by tays01s

I am preparing to package a Mac Runtime. I have an AppleScript app 'NST_mac':

-- Path to the runtime in the App

set appPath to (((path to me) as text) & "Contents:Resources:NST180406:NST180406.app")

-- Convert path to a POSIX path

set newAppPath to POSIX path of appPath

-- executing the script file

try

    set command to "open " & newAppPath

    do shell script command

end try

 

But get the error:

tell current application

    path to current application

        --> alias "Macintosh HD:Users:stephen:Documents:Projects_own:FM:RTS:NST_mac.app:"

    do shell script "open /Users/stephen/Documents/Projects_own/FM/RTS/NST_mac.app/Contents/Resources/NST180406/NST180406.app"

        --> error "The file /Users/stephen/Documents/Projects_own/FM/RTS/NST_mac.app/Contents/Resources/NST180406/NST180406.app does not exist." number 1

end tell

 

I have checked the filepath is correct.

 

1. What am I missing?

2. Are there better ways of packaging a Mac Runtime that using Packages and the method outlined in: FileMaker Runtime Packages and Installer for Mac | Blog | CampSoftware

Outcomes