• 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
Looking for a folder within a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking for a folder within a folder


  • Subject: Looking for a folder within a folder
  • From: Brett Conlon <email@hidden>
  • Date: Tue, 30 May 2006 17:47:40 +1000


Hiya,

I have a script that will be moving  a folder "PACKSHOTS" from the desktop to a designer's job folder. However I want it to see if a folder "PACKSHOTS" as already there.

The following works but I don't believe it's the best way to tackle it:

set XYZ to every folder of DispatchFolder as string
if XYZ contains "PACKSHOTS" then
        display dialog "A PACKSHOTS folder already exists in your job's Dispatch folder. Do you want to replace it or add new packshots to it?" buttons {"Replace it", "Add to it"} default button 2 with icon caution
end if

I'd prefer to pinpoint the folder as a folder because, as you can see, I want to give the user the option of replacing the folder or merging the contents of the new folder with the already existing one.

Anyway, your help would be most appreciated!!!

Cheers,

Coj
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Looking for a folder within a folder
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: 3 button limit in dialogs - I want 4 ;-D
  • Next by Date: Re: Looking for a folder within a folder - HAH! Solved!?
  • Previous by thread: seeking Intel based Mac beta testers
  • Next by thread: Re: Looking for a folder within a folder
  • Index(es):
    • Date
    • Thread