Re: Looking for a folder within a folder - HAH! Solved!?
Re: Looking for a folder within a folder - HAH! Solved!?
- Subject: Re: Looking for a folder within a folder - HAH! Solved!?
- From: Brett Conlon <email@hidden>
- Date: Tue, 30 May 2006 17:55:09 +1000
Sorry to answer my own question but
I had one last fiddle and I came up with the following:
set XYZ to
every
folder of
DispatchFolder
if folder "PACKSHOTS"
of
DispatchFolder exists 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
The dialog displayed and so it seems to be working.
Is this the best way to tackle this?
Cheers,
Coj
Brett Conlon <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden
30/05/06 05:47 PM
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