Re: Tell Blocks Considered Harmful (was Re: open for access)
Re: Tell Blocks Considered Harmful (was Re: open for access)
- Subject: Re: Tell Blocks Considered Harmful (was Re: open for access)
- From: Chris Page <email@hidden>
- Date: Tue, 09 Dec 2008 18:25:18 -0800
On Dec 3, 2008, at 3:33 AM, Philip Aker wrote: associate fndr with provider "com.apple.finder" associate stadds with provider "com.apple.osax.standardadditions"
tell fndr tell stadds set f to open for access hfspath -- code hunk end tell end tell
Or, probably in most cases:
associate fndr with provider "com.apple.finder" associate stadds with provider "com.apple.osax.standardadditions"
tell stadds to set f to open for access hfspath tell fndr -- code hunk that tells Finder to do something with the file end tell -- code hunk that has nothing whatsoever to do with Finder, but may also use the file
i.e., even with “associate … with” it would be best to avoid placing things inside tell blocks unnecessarily.
-- Chris Page
The other, other AppleScript Chris
|
_______________________________________________
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