Re: Folder action script tutorials?
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