Re: make, rename, and move an alias, add dock item
Re: make, rename, and move an alias, add dock item
- Subject: Re: make, rename, and move an alias, add dock item
- From: Andrew Oliver <email@hidden>
- Date: Fri, 30 Jul 2004 17:05:18 -0700
You're thinking of this in the wrong terms.
You're trying to replicate HOW you'd do this manually (select a file, hit a
command-key, type, etc.), rather than just doing WHAT it is you're trying to
do (make an alias).
Just because Command-L is the Finder's interface for humans to make an
alias, that doesn't mean that's the only (or even the best) way of doing it.
Instead, consider something more like:
tell application "Finder"
make new alias file to (choose file) at (path to desktop folder) with
properties {name:"new alias"}
end tell
Clearly you would change the source, destination and names as appropriate.
Can't help you on the dock question, tho', sorry.
Andrew
:)
On 7/30/04 3:03 PM, "Sam Hargis" <email@hidden> wrote:
>
I am at a loss to figure out something that should be
>
fairly simple. But, I can't recall ever seeing it done
>
and have never done it. This may be very simple.
>
>
I want to take an application file, make an alias, like
>
with finder GUI Select File, press Command + L. Then
>
rename that alias and move it to another location.
>
>
Also would like to create an item in the dock for same
>
application. This I think I have seen somewhere but
>
can't remember how it was done.
>
_______________________________________________
>
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.
_______________________________________________
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.