• 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: Creating an alias to folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an alias to folders


  • Subject: Re: Creating an alias to folders
  • From: John Delacour <email@hidden>
  • Date: Sun, 11 Aug 2002 08:32:03 +0100

At 8:23 pm -0800 10/8/02, Dean and Annie Baker wrote:
Hi, I am importing an xml file into AppleShare IP 6.3.3 and need to write a
script to log each user in and to have an alias of the folder that is
created for them put into their teachers folder...

The syntax is

tell app "Finder" to <option-l>
make alias file to folder "path:name" at folder "path:name"

As in...

tell application "Finder"
(* "" & gets you the pathname of a file reference. I find it
more convenient and clearer to work with pathnames *)
set tbb6 to "" & container of application file id "TBB6"
--> "dx:Applications:TEP430b4:"
set uFolder to "" & (path to current user folder)
--> "dx:Users:jd:"
set newAliasRef to make alias file to folder tbb6 at folder uFolder
activate -- if you want
reveal newAliasRef -- if you want
end tell
_______________________________________________
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: 
 >Creating an alias to folders (From: Dean and Annie Baker <email@hidden>)

  • Prev by Date: RE: A simple (?) question made clearer (OS X compile of OS 9 app on 'nother machine)
  • Next by Date: Running scripts over a network
  • Previous by thread: Creating an alias to folders
  • Next by thread: RE: A simple (?) question made clearer (OS X compile of OS 9 app on 'nother machine)
  • Index(es):
    • Date
    • Thread