• 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
Using Scripting Additions Commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Using Scripting Additions Commands
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Modify Time Of Day script
  • Next by Date: Re: Mail fullscreen mess in HS
  • Previous by thread: Re: Best way to orderly display dialogs etc.
  • Next by thread: Re: Using Scripting Additions Commands
  • Index(es):
    • Date
    • Thread