Error Running AppleScript

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

Moderator: Mr_Noodle

Error Running AppleScript Mon Jan 13, 2014 4:14 am • by melwan
Here is the scenario:

1. Any new iOS contact added will trigger an IFTTT recipe.
2. This recipe adds a text file in a specific folder on my DropBox account.
3. Once Hazel detects the new file, it moves it to the trash and run 3 AppleScripts.
4. All is working well except for when the AppleScript is triggered, I get the error "Error executing AppleScript name.scpt on file name.txt"

Is there any way to trigger the AppleScript in general, not on that specific added file?

The content of the script is as follows:

Code: Select all
tell application "Contacts"
   set theNumber to "077"
   set (label of phones of people whose value starts with theNumber) to "orange"
   save
end tell
melwan
 
Posts: 3
Joined: Tue Dec 13, 2011 3:08 am

Re: Error Running AppleScript Mon Jan 13, 2014 3:56 pm • by Mr_Noodle
You'll need to post the full AppleScript error. It might help to also enable debug mode as described in the sticky article near the top of this forum.

Also, rules apply to each file so you need to take that into account. If you want it to fire once for the folder then you need to move everything up one level and have the rule match the folder instead.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support