Re: Make Alias
Re: Make Alias
- Subject: Re: Make Alias
- From: Gary Lists <email@hidden>
- Date: Mon, 09 Feb 2004 23:52:36 -0500
Mike Bautsch wrote [2/9/04 10:41 PM]:
>
I am trying to make a alias and give it a new name. Can this be done at
>
the same time? This is what I have so far:
>
>
on open (somefile)
>
>
tell application "Finder"
>
make new alias at folder "Import" of the desktop to somefile
>
move somefile to folder "Done" of the desktop
>
>
end tell
>
end open
>
>
This all works, I just don't know how to give the alias a name that
>
will always be the same.
>
>
Thanks,
>
>
Mike
If you are only dropping one item at a time onto your droplet application
(that's the on open handler), then this will work (because of some
assistance from AS on your one-alias list.)
If you drop multiple items, I don't think you'll find the script
satisfactory. (You also couldn't have multiple items with the same name
being created in the 'Import' folder, so...)
Anyway, in order to name the newly created alias something else, make this
change:
set NA to make new alias at folder "Import" of the desktop to somefile
...
set name of NA to "whateveryouwant"
It's not the tightest script you could make, but there you go.
--
Gary
_______________________________________________
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: | |
| >Make Alias (From: Mike Bautsch <email@hidden>) |