Looking for a folder within a folder
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