November 8, 200520 yr Hi, Im running filmaker server 7. it was running on a OS 10.2.8 server, Recently our hardware guy installed over it OS 10.4.2 server and everything seemed to be working, However now i cannot perform the applescript that used to work fine when the filemaker server was on 10.2.8 Like so set userComp to (do shell script "echo $USER") set fold_path to "Macintosh HD:Users:Shared:Exported images:" tell application "Finder" delete every item of folder fold_path end tell Now it doesnt do a thing , wondering is the upgrade the problem or is there a setting i need to fiddle with somehwere, as always thanks for any help. D
November 9, 200520 yr Did the name of the hard drive or any of the folders change? Does the images folder have the correct permissions so the script can access it? Here's how I'd modify the AppleScript so it can trap and display errors: tell application "Finder" try delete every item of folder fold_path on error ErrorMessage number ErrorNumber set theError to "Error (explain more here): " & (ErrorNumber as string) & ". " & (ErrorMessage as string) & return display dialog theError buttons {"OK"} default button 1 with icon stop end try end tell
Create an account or sign in to comment