On May 26, 2008, at 1:24 PM, J. Todd Slack wrote: Hi All,
Can anyone point me to an example (maybe a downloadable .zip) of an XCode project that when the app it runs it runs an applescript, does not display any windows or anything....maybe just displays "Hello World" in a display dialog by using "on run"
Double click the MainMenu.nib file in your project. Delete the window object in in MainMenu.nib (if not, it will show when you run the app)
Select the File's Owner and click on the AppleScript icon in the Inspector window (if it is not showing - Command, Shift I) Select Application then "will finish launching" Save and go back to Xcode.
You will see the following code is now in your AppleScript.
on will finish launching theObject display dialog "Hi There" end will finish launching
Save and run the app.
If any of this is unclear, let me know.
Regards,
Craig
|