Re: Folder Action Vs Finder
Re: Folder Action Vs Finder
- Subject: Re: Folder Action Vs Finder
- From: Andy Wylie <email@hidden>
- Date: Thu, 12 Sep 2002 21:30:46 +1200
on Thu, 12 Sep 2002 20:10:42 +1200 Andy Wylie wrote:
>
on Wed, 11 Sep 2002 22:04:11 -0700 bill fancher wrote:
>
>
>Did the test. (Used the Apple supplied "add - new item alert" script,
>
>making it even easier than I'd anticipated.) Result: Adding a file with
>
>a duplicate name brings up the finder Replace dialog. The folder action
>
>is not executed.
>
>
>
>Perhaps there should be a "changing items in..." event.
>
>
until then you could check...
>
>
tell application "Finder"
>
set {newFolName, folName, cnt} to {"Test", "Test", 0}
>
set |exists| to (get exists of folder named folName of desktop)
>
repeat until |exists| = false
>
set cnt to cnt + 1
>
set newFolName to folName & cnt
>
set |exists| to (get exists of folder named newFolName of desktop)
>
end repeat
>
set newFolder to (make new folder at desktop with properties
>
{name:newFolName})
>
end tell
>
sorry, I should have said... something like this in droplet but then you
wouldn't need a clunky folder action would you?
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.