• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript and Cocoa and XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript and Cocoa and XCode


  • Subject: Re: Applescript and Cocoa and XCode
  • From: Craig Williams <email@hidden>
  • Date: Mon, 26 May 2008 14:40:01 -0600

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



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Applescript and Cocoa and XCode (From: "J. Todd Slack" <email@hidden>)

  • Prev by Date: Applescript and Cocoa and XCode
  • Next by Date: Fwd: Working with XML
  • Previous by thread: Applescript and Cocoa and XCode
  • Next by thread: Fwd: Working with XML
  • Index(es):
    • Date
    • Thread