PDA

View Full Version : applescript newbie




sahnert
Nov 30, 2003, 08:44 PM
wrote my first script today. It works when I run it from the script editor, but when I put it in the scripts folder for GraphicConverter and run it from inside the app, GC crashed. I've tried putting it in both the User scripts folder and the regular one. Any suggestions?

tell application "GraphicConverter"
change contrast of the front window to 100
end tell

GraphicConverter 4.5.2
OS X 10.2.8

Thanks in advance


also when I run it in script editor it comes up with a new window called "the result" and it says "0". what's that all about?



MoparShaha
Dec 1, 2003, 12:36 AM
I'm not familiar with AppleScript, but the "0" at the end probably means the script executed properly. At least that's what it means in C. If you get a "1", that means there was an error.