Dusty_Rods Posted November 8, 2005 Posted November 8, 2005 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
CyborgSam Posted November 9, 2005 Posted November 9, 2005 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
Recommended Posts
This topic is 6955 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now