the following line evokes the sub-routine to write the error into an error log created on the desktop Set the error_text to "Error: " & the error_number & ". can handle it, or AppleScript can display the number. On error the error_message number the error_number from the offending_object Open ("/Users/drivord/Documents/DowntimeData.pdf") Open ("/Users/drivord/Documents/MaintSchedule.pdf") Open ("/Users/drivord/Documents/PSchedule.pdf") Set destination to home_path & "Documents:"ĭuplicate file source to folder destination with replacingĭuplicate file source2 to folder destination with replacingĭuplicate file source3 to folder destination with replacing Set source3 to "Production:Maintenance Planner (C.Slasor):Presentations_pdf:MaintSchedule.pdf" Set source2 to "Production:Maintenance Planner (C.Slasor):Presentations_pdf:DowntimeData.pdf" Set source to "Operations:Production_Schedule_pdf:PSchedule.pdf" The last line I got an AppleEvent Timed out error on wasīut i have received it elsewhere in the script also.Īny thoughts or suggestions would be appreciated. My question or problem is thus, I have been getting Appleevent Timed out Errors and would like to know the best way to avoid or deal with these and have script to either start over or continue executing but not just stop dead in its tracks. Every 30 minutes or so, the script closes the pdf windows and goes out to a share drive to get updated copies, that it then copies to local drive, replacing the ones there already. It is intended for this script to never stop unless the machine is rebooted. Basically this applescript is used to open pdfs in full screen mode, display them for set lenght of time and rotate continously. I have come up with the below applescript for a project here at work. Hey all I am relatively new to applescsripting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |