• 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: NSAppleScript with threading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript with threading


  • Subject: Re: NSAppleScript with threading
  • From: Nathan Day <email@hidden>
  • Date: Tue, 10 May 2005 15:02:20 +1000

That fine if you are only executing AppleScripts that you write yourself, but if you try to execute an AppleScript supplied by a user they may exepect your application to handle display dialog by default and not wrap it in a 'tell application'

On Tuesday, May 10, 2005, at 02:15PM, Charles Srstka <email@hidden> wrote:

>On May 9, 2005, at 11:08 PM, Nathan Day wrote:
>>
>> osascript simply fails if it tries to do any gui stuff. You could
>> write your own equivalent though and set the default apple event
>> handler to something other than the current process (the default),
>> you main application for instance, that way any gui stuff like
>> display dialog no wrapped in a 'tell application' would be handled
>> by your main application.
>
>
><deleted>:~ <deleted>$ osascript -e 'tell application "System Events"
>to display dialog "testing 1 2 3"'
>button returned:OK
>
>Works fine when I try it...
>
>Charles
>
>


Nathan Day
email@hidden
http://homepage.mac.com/nathan_day/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSAppleScript with threading (From: Thomas Clement <email@hidden>)
 >Re: NSAppleScript with threading (From: Nathan Day <email@hidden>)
 >Re: NSAppleScript with threading (From: Daniel Jalkut <email@hidden>)
 >Re: NSAppleScript with threading (From: Nathan Day <email@hidden>)
 >Re: NSAppleScript with threading (From: Charles Srstka <email@hidden>)
 >Re: NSAppleScript with threading (From: Nathan Day <email@hidden>)
 >Re: NSAppleScript with threading (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: plain text and Spotlight
  • Next by Date: Re: prompt display
  • Previous by thread: Re: NSAppleScript with threading
  • Next by thread: Re: NSAppleScript with threading
  • Index(es):
    • Date
    • Thread