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

AppleScript under OS X


  • Subject: AppleScript under OS X
  • From: Mark Gibson <email@hidden>
  • Date: Thu, 12 Feb 2004 09:17:08 +1100

Hi,

Machines at one of my sites running OS 9 used to run the following startup script:

delay 20
tell application "Finder"
activate
select every item of container window of folder "Templates" of folder "Microsoft Office 2001" of folder "Applications (Mac OS 9)" of startup disk
delete selection
select every item of container window of folder "Templates" of folder "Server II" of disk "DATA"
copy selection to folder "Templates" of folder "Microsoft Office 2001" of folder "Applications (Mac OS 9)" of startup disk
empty trash
end tell
tell application "Finder"
activate
select file "Microsoft Word" of folder " Applications" of folder "Apple Menu Items" of folder "System Folder" of startup disk
open selection
end tell

This would delete the contents of the Templates folder and copy over fresh files from the Master on the server and then launch Word.

Under OS X, I've tried to record a script but the "copy" and "delete" actions don't seem to be in the Finder's dictionary anymore. Running "record" and following the above sequence, all I get is:

tell application "Finder"
activate
make new Finder window to startup disk
make new Finder window to folder "Applications" of startup disk
make new Finder window to folder "Microsoft Office X" of folder "Applications" of startup disk
make new Finder window to disk "DATA"
make new Finder window to folder "Server II" of disk "DATA"
end tell

Any idea as to how I can replicate the functionality of the original script?
--
Regards,

Mark (}-:

AIM / iChat: gibsonm1

"One OS to rule them all, one OS to find them,
One OS to bring them all and in the darkness bind them,
In the land of Redmond, where the shadows lie."

Apologies to J.R.R.T ;^D
_______________________________________________
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.

  • Follow-Ups:
    • Re: AppleScript under OS X
      • From: Mr Tea <email@hidden>
  • Prev by Date: Re: Error in the Finder
  • Next by Date: Re: Close all windows
  • Previous by thread: Re: Close all windows
  • Next by thread: Re: AppleScript under OS X
  • Index(es):
    • Date
    • Thread