Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

applescript compiled application versus script

Ive been working on some applescripts (10.6 os) and I've noticed there is a large difference between running a script from the script editor as opposed to from a compiled application. The app for is much slower. Also, in my reading application bundles are discussed but the only bundle option available when saving is a script bundle (extension scptd). Not sure how script bundle differs from application bundles or the lack of a separate save option for application bundle affects a compiled app. If I wan't to be sure a custom icon travels with the app what is the best way to embed it?


Anyone know why compiled apps are slower than running the script from applescript?


Mike

Posted on Jan 18, 2013 9:32 PM

Reply
Question marked as Best reply

Posted on Jan 18, 2013 10:03 PM

An application needs to be loaded by the system, while the Script Editor (and the script) is already loaded. Running the application a second time should be faster, since it is already cached.


A script bundle is mainly used if you have other scripts or support files that you want bundled together - starting in Snow Leopard, a script application will always be a bundle.


The application icon is placed in the /Contents/Resources/ folder of the application bundle, and the file name (along with other configuration items such as the bundle identifier, document types, copyright info, etc) is placed under the appropriate key in the Info.Plist file - see the Information Property List Key Reference.

3 replies
Question marked as Best reply

Jan 18, 2013 10:03 PM in response to madelefant

An application needs to be loaded by the system, while the Script Editor (and the script) is already loaded. Running the application a second time should be faster, since it is already cached.


A script bundle is mainly used if you have other scripts or support files that you want bundled together - starting in Snow Leopard, a script application will always be a bundle.


The application icon is placed in the /Contents/Resources/ folder of the application bundle, and the file name (along with other configuration items such as the bundle identifier, document types, copyright info, etc) is placed under the appropriate key in the Info.Plist file - see the Information Property List Key Reference.

applescript compiled application versus script

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.