Re: Looking for a folder within a folder
Re: Looking for a folder within a folder
- Subject: Re: Looking for a folder within a folder
- From: Michelle Steiner <email@hidden>
- Date: Tue, 30 May 2006 08:57:49 -0700
On May 30, 2006, at 12:47 AM, Brett Conlon wrote: Anyway, your help would be most appreciated!!!
Here is how I would do it:
tell application "Finder" try move folder "target" of the desktop to folder "temp" of the desktop without replacing on error msg number num if num is -15267 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 {"Cancel", "Replace it", "Add to it"} default button 1 with icon caution end if end try end tell
The reason I put in the cancel button is that there might be a possibility that the user might not want to add to or replace the existing folder. I made the cancel button the default because it is the safest option of the three.
-- Michelle
-- "Democrats wrap themselves in the constitution and burn the flag while Republicans wrap themselves in the flag and burn the constitution."
|
_______________________________________________
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