• 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: Atomic scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Atomic scripts


  • Subject: Re: Atomic scripts
  • From: Paul Skinner <email@hidden>
  • Date: Tue, 6 Aug 2002 14:05:58 -0400

On Tuesday, August 6, 2002, at 01:02 PM, Rob Jorgensen wrote:

On 8/6/02, Paul Skinner commented:

Have you ever wanted to avoid some OSAX intruding on your script and quietly coercing things or the like? Do you hate all OSAX even that darn 'Standard Additions'? If so, then get some counseling. But if you just want to isolate a script from all additions you can try this...

property parent : me
tell AppleScript--explicit direction still works.
display dialog "Hello World"
end tell
display dialog "Hello World"

If I remove the last line and then use Script Debugger's Manifest feature, it still lists Standard Additions. Is this the behavior that one should expect?

-- OS X 10.1.5 and SD 3.0.3

--
Rob Jorgensen

Yes. The 'Tell Applescript' statement does contain a reference to a standard addition command.
The effect of 'me' as parent is to short-circuit (literally) the automatic redirection of handlers, that are not defined in the script, up the hierarchy of context.
Even with only the raw 'Display Dialog' script debugger reports 'standard. additions' in the manifest. I can only assume that this is because SD builds a database of available commands at launch and doesn't expect a script to claim itself as it's own parent.

--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Atomic scripts (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Re: Atomic scripts
  • Next by Date: Re: Need XOR solution
  • Previous by thread: Re: Atomic scripts
  • Next by thread: Re: Atomic scripts
  • Index(es):
    • Date
    • Thread