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: Philip Aker <email@hidden>
- Date: Wed, 10 Dec 2008 13:02:03 -0800
On 2008-12-10, at 12:48:46, Carlos Ysunza wrote:
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.
I’m missing something or what?
Yes, the discussion is about a proposal for an additional AppleScript
mechanism to handle the problem of symbol binding.
Illustrating by code example is just another way of using the concept:
"a picture is worth a thousand words".
The very first line of the “code” associate fndr with provider
"com.apple.finder" don’t even compile, how do you use this
“associate” command?
This is the first time I see it., can someone enlighten me, Thaks
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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