• 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: Folder action script tutorials?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder action script tutorials?


  • Subject: Re: Folder action script tutorials?
  • From: Paul Skinner <email@hidden>
  • Date: Mon, 05 Mar 2001 17:17:45 -0500

on 3/5/01 4:46 PM, Paul Skinner wrote:

SNIP!

> By the way, to remove the scripts you've attatched to your DT folder, if
> you actually ran that script on you box, which you should never do without
> fully groking the result : )...
>
>
> --Also Converted using Wacky ListServer v1.0 : )
>
> --begin script
> --To remove all attached scripts from the Desktop Folder.
> set allRemoved to false
> set theDesktop to path to desktop folder
> repeat while allRemoved  true

that should be...
repeat while allRemoved is not true
...and I thought I scripted verbosely enough to get away with it.

> tell application "Folder Actions"
> try
> remove action from theDesktop using action number 1
> on error
> set allRemoved to true
> end try
> end tell
> end repeat
> display dialog " The Desktop Folder has no actions attatched to it."
> --end script

--
Paul Skinner


References: 
 >Re: Folder action script tutorials? (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: Graphical text via CGI
  • Next by Date: Re: Where is the Searchable Applescript-users Archive?
  • Previous by thread: Re: Folder action script tutorials?
  • Next by thread: Re: Folder action script tutorials?
  • Index(es):
    • Date
    • Thread