March 3, 20178 yr Is there a way in AppleScript to trap if the connection is lost and have an AppleScript act on this? At the risk of asking and answering myself( AppleScript below ) repeat tell application "FileMaker Pro" try database "db" on error do shell script "sudo shutdown -r now" with administrator privileges end try end tell delay 59 -- 59 secs end repeat Edited March 5, 20178 yr by ggt667
July 6, 20178 yr This is a background script I use to make sure a server partition is always mounted. We had irregular diconnects and this will reconnect the drive within a 10 minute time frame. This is meant for a very 'low' use computer running background apps. ;-) Edited July 6, 20178 yr by CoZiMan notify
Create an account or sign in to comment