Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > what is shortcut to copy original from alias?

what is shortcut to copy original from alias?
Thread Tools
benandkelley
Junior Member
Join Date: Sep 2004
Status: Offline
Reply With Quote
Oct 16, 2004, 11:07 PM
 
Hi,

I have a folder with about 200 alias items. I would like to copy all of the original files to a backup drive. The originals are in many different places, so it would be tedious and time consuming to find each original and copy it by hand.

I'm using OS 10.3

Is there a short-cut for doing this?

Thanks in advance.

-Ben
( Last edited by benandkelley; Oct 16, 2004 at 11:12 PM. )
     
spiky_dog
Mac Elite
Join Date: Dec 1999
Location: Plainview, NY
Status: Offline
Reply With Quote
Oct 16, 2004, 11:36 PM
 
good luck. there's no shortcut that i know of. you should be able to write an applescript that can do this by looking up each alias's original (then copy, rinse, repeat)
     
chabig
Addicted to MacNN
Join Date: Jun 1999
Location: Las Vegas, NV, USA
Status: Offline
Reply With Quote
Oct 17, 2004, 11:02 AM
 
I don't think an Applescript would be very complex (but I don't know how!). I would recommend you go to Apple's discussion forum at http://discussions.info.apple.com/ and check into the Applescript area. I'm sure someone there will help.

Chris
     
Diggory Laycock
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Oct 18, 2004, 08:24 AM
 
try this:

[php]
set the backupSource to ":Users:diggory:aliases" as alias
set the backupDestination to ":users:diggory:Backup:" as alias


tell application "Finder"
set everyAlias to every item of folder backupSource

repeat with thisAlias in everyAlias
set originalFile to (original item of thisAlias)
duplicate originalFile to backupDestination
end repeat
end tell
[/php]
     
benandkelley  (op)
Junior Member
Join Date: Sep 2004
Status: Offline
Reply With Quote
Oct 18, 2004, 09:28 AM
 
Originally posted by Diggory Laycock
Thanks for the code. I'll give it a try and let you know if it works out as I hope.

Thanks :-)

-Ben
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 07:46 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,