• 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: Tell Blocks Considered Harmful (was Re: open for access)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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, 3 Dec 2008 03:33:08 -0800

On 2008-12-03, at 03:14:22, Philip Aker wrote:

On 2008-12-02, at 20:51:03, Chris Page wrote:

It is an accident of history that scripting additions enable arbitrary programs to respond to events they were not explicitly designed to support.

The historical tragedy will be if modern AppleScript doesn't address the problem.

set provider_list to loaded providers
--> {"com.apple.osax.standardadditions", "ca.aker.osax.metadata", "fr.satimage.osax.smile", …}

tell provider "com.apple.finder"
    tell provider "com.apple.osax.standardadditions"
        set f to open for access hfspath
        -- code hunk
     end tell
end tell

Hence:

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


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

  • Follow-Ups:
    • Re: Tell Blocks Considered Harmful (was Re: open for access)
      • From: Chris Page <email@hidden>
References: 
 >Re: open for access (From: "Nigel Garvey" <email@hidden>)
 >Tell Blocks Considered Harmful (was Re: open for access) (From: Chris Page <email@hidden>)
 >Re: Tell Blocks Considered Harmful (was Re: open for access) (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Tell Blocks Considered Harmful (was Re: open for access)
  • Next by Date: how can I reliably query the correct terminal window?
  • Previous by thread: Re: Tell Blocks Considered Harmful (was Re: open for access)
  • Next by thread: Re: Tell Blocks Considered Harmful (was Re: open for access)
  • Index(es):
    • Date
    • Thread