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

Re: Make Alias


  • Subject: Re: Make Alias
  • From: Graff <email@hidden>
  • Date: Mon, 09 Feb 2004 23:45:48 -0500

Try this:
----------
1 on open (somefile)
2 tell application "Finder"
3 set theFile to make new alias file at folder "Import" of the desktop to somefile with properties {name:"yourname"}
4 move somefile to folder "Done" of the desktop
5 end tell
6 end open
----------

There's a fairly long line in there so I numbered the lines, just combine lines that don't have a line number to the line before it and remove the line numbers to run the script.

-Ken


On Feb 9, 2004, at 10:41 PM, Mike Bautsch wrote:

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.
_______________________________________________
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>)

  • Prev by Date: Re: Scripting Additions Calls in Tell Blocks
  • Next by Date: Re: Make Alias
  • Previous by thread: Make Alias
  • Next by thread: Re: Make Alias
  • Index(es):
    • Date
    • Thread