Hazel and Applescript

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hazel and Applescript Wed Nov 29, 2017 12:19 pm • by MichaelTzu
Am attempting to run simple applescript from Hazel. Is there anything very obvious in log file that could suggest why this script is not working:

===== Wednesday, 29 November 2017 16:09:16 Europe/London =====
2017-11-29 16:09:29.156 HazelHelper[105] Attempted to run watcher on undeployed folder: /Users/g5-14/Desktop/Temp Conversion.
2017-11-29 16:09:29.156 HazelHelper[105] Attempted to run watcher on undeployed folder: /Users/g5-14/Desktop/Temp Conversion.
2017-11-29 16:09:29.157 HazelHelper[105] Attempted to run watcher on undeployed folder: /Users/g5-14/Desktop/Temp Conversion.
2017-11-29 16:09:29.157 HazelHelper[105] Attempted to run watcher on undeployed folder: /Users/g5-14/Desktop/Temp Conversion.
2017-11-29 16:09:40.053 HazelHelper[105] Attempted to run watcher on undeployed folder: /Users/g5-14/Desktop/Temp Conversion.
2017-11-29 16:09:40.054 HazelHelper[105] Attempted to run watcher on undeployed folder: /Users/g5-14/Desktop/Temp Conversion.
2017-11-29 16:09:40.056 HazelHelper[105] Attempted to run watcher on undeployed folder: /Users/g5-14/Desktop/Temp Conversion.
2017-11-29 16:09:40.057 HazelHelper[105] Attempted to run watcher on undeployed folder: /Users/g5-14/Desktop/Temp Conversion.
2017-11-29 16:09:46.440 hazelfolderwatch[13479] DEBUG: Program is licensed.
2017-11-29 16:09:46.461 hazelfolderwatch[13479] DEBUG: Error reading file /Users/g5-14/Library/Application Support/Firefox/profiles.ini: NSError "The file could not be opened using specified text encoding." Domain=NSCocoaErrorDomain Code=261 UserInfo={
NSFilePath = "/Users/g5-14/Library/Application Support/Firefox/profiles.ini";
}
2017-11-29 16:09:46.462 hazelfolderwatch[13479] DEBUG: Error reading file /Users/g5-14/Library/Application Support/Flock/profiles.ini: NSError "File “profiles.ini” does not exist." Domain=NSCocoaErrorDomain Code=260 UserInfo={
NSFilePath = "/Users/g5-14/Library/Application Support/Flock/profiles.ini";
NSUnderlyingError = NSError "POSIX error: No such file or directory" Domain=NSPOSIXErrorDomain Code=2;
}
2017-11-29 16:09:46.494 hazelfolderwatch[13479] DEBUG: Volume not accessible for alias: /Volumes/54.72.94.59/outputs
2017-11-29 16:09:46.519 hazelfolderwatch[13479] DEBUG: Could not resolve alias. Old path: (null) Error: -50
2017-11-29 16:09:46.519 hazelfolderwatch[13479] DEBUG: Could not resolve alias. Old path: (null) Error: -50
2017-11-29 16:09:46.519 hazelfolderwatch[13479] DEBUG: Initialized
2017-11-29 16:09:46.519 hazelfolderwatch[13479] DEBUG: Pausing to wait for things to settle down.
2017-11-29 16:09:48.520 hazelfolderwatch[13479] DEBUG: Processing directories: ("/Users/g5-14/Desktop/Temp Conversion")
2017-11-29 16:09:48.521 hazelfolderwatch[13479] DEBUG: About to process directory /Users/g5-14/Desktop/Temp Conversion
2017-11-29 16:09:48.538 hazelfolderwatch[13479] Brook House Farm.NTB: Rule Update VW to 2012 matched.
2017-11-29 16:09:48.539 hazelfolderwatch[13479] DEBUG: New rule signature. Executing actions.
Old signature: (null)
New Signature:{NOT typeObject isType: "public.folder"}:{(applescript:0d1827985acc13b641c5e4d4e1bbccb1,{})}
2017-11-29 16:10:25.836 hazelfolderwatch[13479] [Error] AppleScript failed: Error executing AppleScript on file /Users/g5-14/Desktop/Temp Conversion/Brook House Farm.NTB.
2017-11-29 16:10:25.836 hazelfolderwatch[13479] AppleScript error: {
OSAScriptErrorBriefMessage = "User canceled.";
OSAScriptErrorMessage = "VectorWorks got an error: User canceled.";
OSAScriptErrorNumber = -128;
OSAScriptErrorRange = <00000000 00000000 >;
}
2017-11-29 16:10:25.928 hazelfolderwatch[13479] DEBUG: Writing out DB file: /Users/g5-14/Desktop/Temp Conversion
2017-11-29 16:10:25.932 hazelfolderwatch[13479] DEBUG: Directory /Users/g5-14/Desktop/Temp Conversion processed.
2017-11-29 16:10:25.933 hazelfolderwatch[13479] DEBUG: Sleeping
2017-11-29 16:10:27.933 hazelfolderwatch[13479] DEBUG: Done
MichaelTzu
 
Posts: 19
Joined: Mon Feb 02, 2015 9:10 am

Re: Hazel and Applescript Thu Nov 30, 2017 11:41 am • by Mr_Noodle
This is the main error:
Code: Select all
OSAScriptErrorBriefMessage = "User canceled.";
OSAScriptErrorMessage = "VectorWorks got an error: User canceled.";

You may to try the script outside of Hazel as it seems the issue is on the VectorWorks side.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support