• 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: Need help with some functions of scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help with some functions of scripting


  • Subject: Re: Need help with some functions of scripting
  • From: Timothy Bates <email@hidden>
  • Date: Fri, 01 Feb 2002 10:04:05 +1100

On 1/2/02 7:27 AM, "Vogel, Cory" <email@hidden> wrote:
> I need to tell the finder to look for a specific folder and replace it with
> another folder. What do I write in the script editor? Your help would be
> very much appreciated. Thanx

What do you mean "look for". Do you know where it is in advance?
Do you know where the other folder is?

I would write

tell application "Finder"
set oldContainer to folder "disk:folder:"
set oldFolderName to "oldName"
set newFolder to folder "disk:folder:folder:folder"
move folder oldFolderName of oldContainer to the trash
move folder newFolder to oldContainer
set name of newFolder to oldFolderName
end tell


  • Prev by Date: Re: Export to a PDF from Quark
  • Next by Date: Re: Week of year - odd/even week
  • Previous by thread: Re: Export to a PDF from Quark
  • Next by thread: Re: Unique ID
  • Index(es):
    • Date
    • Thread