script error on every other Mac?
script error on every other Mac?
- Subject: script error on every other Mac?
- From: Peter Hein <email@hidden>
- Date: Mon, 16 Sep 2002 12:20:53 -0400
I have a Mac lab with 25 machines. All with the same image on the hard
disk (9.2.2). I have the following script installed. Believe it or not
- every other- Mac comes back with the following error
can't get <> "download_folder" of <> of Application Finder.
I have tried different variations with no luck. I was hoping some kind
sole out there might take a look at my script and see if they could see
anything wrong or glaring errors.
--- SCRIPT BELOW ---
-- Set the variables needed set sasDel1 to "Mac
HD:download_folder:sasWork" set iePrefs to "Mac HD:System
Folder:Preferences:Explorer" set freshandClean to "Mac HD:System
Folder:freshandclean:Explorer" set prefFolder to "Mac HD:System
Folder:Preferences"
tell application "Finder"
-- remove sas folders
delete folder "sasWork" of folder "download_folder" of startup disk
delete folder "sasUser" of folder "download_folder" of startup disk
pause for 3 with seconds timing end tell
-- get a list of files that are older then x hours and delete them. try
set delList to the entries in ,
"Mac HD:download_folder" that were created before ,
((current date) - (8 * hours))
-- create new sas folders
a new folder in "Mac HD:download_folder" named "sasWork"
a new folder in "Mac HD:download_folder" named "sasUser"
pause for 3 with seconds timing
end try
try
tell application "Finder"
-- empty the download folder and recreate the sas folders.
try
delete delList
--delete folderList
-- remove IE prefs so new ones can go in
delete folder "Mac OS 9:System Folder:Preferences:Explorer"
-- empty the trash and copy in new prefs files for IE
empty trash
pause for 5 with seconds timing
copy folder ,
freshandClean to folder prefFolder
end try
end tell
-- Is the user going to use the Internet or just drop them
-- into the Finder?
tell me to activate
set theRslt to (display dialog ,
"Do you wish to use the Internet?" buttons {"Yes", "No"} giving up
after 300)
if (gave up of theRslt) or (button returned of theRslt is "No") then
tell application "Finder" to activate
else
tell application "Internet Explorer"
Activate
OpenURL "
http://access.wright.edu/labsaccess.html"
end tell
end if
end try
Peter N. Hein
Wright State University - CaTS - Network Services
Macintosh Software Specialist II
email@hidden
voice: 937.775.4949
"Those who would give up essential liberty to purchase a little
temporary safety deserve neither liberty nor safety"
-Benjamin Franklin
_______________________________________________
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.