Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: display alert in AppleScript Studio ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display alert in AppleScript Studio ???




Le jeudi 28 nov. 06 19:06 à 18:18, Paul Berkowitz a écrit :

If you need to use  term from Standard Additions that conflicts with Studio's version of the same thing - e.g. 'display alert' -  you can call it inside a Finder or System Events tell block. But to avoid having to click the alert to the front first then click back to your app, also add some 'activate' commands:


on launched theObject
   
    set the_alert to "Whatever"
    
    tell application "System Events"
        activate
       display alert the_alert as warning buttons {"OK"} giving up after 8        
    end tell   
    activate

end launched



OK fine i like that workover because that alert is for a droplet, not an app, no UI, i hate clicking over buttons )))

best,

Yvon
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: display alert in AppleScript Studio ??? (From: Paul Berkowitz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.