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

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

  • Follow-Ups:
    • Re: Looking for a folder within a folder
      • From: Brett Conlon <email@hidden>
References: 
 >Looking for a folder within a folder (From: Brett Conlon <email@hidden>)

  • Prev by Date: Re: Lists and network volumes
  • Next by Date: [OT] Re: Using a pre-existing username/password for authentication
  • Previous by thread: Looking for a folder within a folder
  • Next by thread: Re: Looking for a folder within a folder
  • Index(es):
    • Date
    • Thread