• 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
AppleScript copy selection and make alias commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript copy selection and make alias commands


  • Subject: AppleScript copy selection and make alias commands
  • From: Joe Fahs <email@hidden>
  • Date: Sat, 23 Aug 2003 22:05:34 -0400

Dear members of the AppleScript mailing list,

In the past I have written a script that copied a Eudora mail folder
with a settings file to the user's home directory and create a
shortcut to the settings in the root of the directory. The protocol
at that time was AFP over AppleTalk and the operating system MacOS
9.x.

Using OS X, users on our network can log on to their Windows 2000
home directories using the mount volume SMB command in AppleScript.
This is much more efficient than mounting AppleTalk class shares and
then opening the user directory. However, I cannot get the ported
script for OS 9 to work in OS X 10.2.6. I encounter permissions error
on copy and the make alias command does not work. Behavior is not
consistent. Documentation is sparse and because the Finder in OS X is
not recordable, I am unable to easily determine what should work and
what does not work.

Would you review this script and let me know if the copy selection
and make new alias file commands have the correct syntax? My comments
are in ( )'s at the end of some command lines.

Thank you for you help!

Joe Fahs

OS 9 SCRIPT


try
set udrive to "Volumes:" & username & "$" (this is a Windows
hidden share that already has been mounted after user login)
tell application "Finder"
open file udrive
display dialog "We will create a mail folder for you"
buttons {"OK"}
select folder "My Mail" of disk "Data" (replacing
another share with a local drive)
copy selection to file udrive (will get permissions
error so I copy the folder manually)
select folder "My Mail" of file udrive
open selection
select file "Eudora Settings" of folder "My Mail" of
file udrive (stops here)
make new alias file to selection at folder file udrive
select file "Eudora Settings" of folder file udrive
set name of selection to "start mail"
close window "My Mail"
select file "start mail" of file udrive
open selection
end tell

end try
_______________________________________________
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: Services?
  • Next by Date: as is what?
  • Previous by thread: Hotlist webpage script/Tex-Edit
  • Next by thread: as is what?
  • Index(es):
    • Date
    • Thread