Using Scripting Additions Commands
Using Scripting Additions Commands
- Subject: Using Scripting Additions Commands
- From: Jim Underwood <email@hidden>
- Date: Tue, 31 Oct 2017 20:01:27 +0000
- Thread-topic: Using Scripting Additions Commands
Shane,
I am a bit confused by your below comment. According to Apple, the target of a
scripting addition command is always an application...
AppleScript Scripting Additions
Guide<https://manuals.info.apple.com/MANUALS/1000/MA1357/en_US/0305098AASADDGENG.pdf>
(PDF)
________________________________
Sending Scripting Addition Commands
Like the target of an application command, the target of a scripting addition
command is always an application object or a script object. If the script
doesn’t explicitly specify the target with a Tell statement, AppleScript sends
the command to the default target application, which is usually the application
running the script (for example, the Script Editor).
A scripting addition command performs its action only after the command has
been received by a target application. Unlike application commands, scripting
addition commands always work the same way regardless of the application to
which they are sent.
________________________________
Has this changed since that document was published?
Best Regards,
Jim Underwood
aka JMichaelTX
From: Shane Stanley
<email@hidden<mailto:email@hidden>>
Date: Tuesday, October 31, 2017 at 7:48 AM
To: "ASUL (AppleScript)"
<email@hidden<mailto:email@hidden>>
Subject: Re: Best way to orderly display dialogs etc.
I suspect you're thinking of the general admonition to keep scripting addition
calls outside app tell blocks, but display dialog and a few others (think
UI-type commands) are exceptions that are explicitly designed to be safe in
tell blocks.
--
Shane Stanley <email@hidden<mailto:email@hidden>>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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