• 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: Alias replacing script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alias replacing script


  • Subject: Re: Alias replacing script
  • From: Bill White <email@hidden>
  • Date: Tue, 06 Jul 2004 12:59:58 -0400

> Could you please help me in creating an apple script that replaces all the
> aliases in a specified folder with the originals? I've searched around and
> found none.. I think this one could be very useful.

Max,

Simplistically, something like the following would do it:

set originalFolder to choose folder

tell application "Finder"

set aliasFileList to every alias file of originalFolder

repeat with i from 1 to count aliasFileList

set originalFile to original item of (item i of aliasFileList)

move originalFile to originalFolder with replacing

end repeat

end tell

HTH,

Bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Alias replacing script (From: Max La mela di Newton <email@hidden>)

  • Prev by Date: Re: Getting the default language with AppleScript
  • Next by Date: Re: (OFF) Curiosity & It's Relation To Cats...
  • Previous by thread: Alias replacing script
  • Next by thread: Re: (OFF) Curiosity & It's Relation To Cats
  • Index(es):
    • Date
    • Thread