• 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: make, rename, and move an alias, add dock item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Time in milliseconds
  • Next by Date: Re: Time in milliseconds
  • Previous by thread: make, rename, and move an alias, add dock item
  • Next by thread: Wake from Sleep
  • Index(es):
    • Date
    • Thread