• 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 Vs Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Action Vs Finder


  • Subject: Re: Folder Action Vs Finder
  • From: Andy Wylie <email@hidden>
  • Date: Thu, 12 Sep 2002 20:10:42 +1200

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
_____________________________ 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.

  • Follow-Ups:
    • Re: Folder Action Vs Finder
      • From: Marconi <email@hidden>
  • Prev by Date: Re: Display dialog frontmost?
  • Next by Date: Re: Folder Action Vs Finder
  • Previous by thread: Re: Folder Action Vs Finder
  • Next by thread: Re: Folder Action Vs Finder
  • Index(es):
    • Date
    • Thread