Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Use alias or full path for this to work!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use alias or full path for this to work!
Authored by: rshaw on May 06, '01 10:54:56PM

Please be aware, the above tip only works correctly if you run the "osascript" command with a full path, or from an alias. The man page states:


o osascript will not work correctly if it is found using your $PATH.
You must give the full path, i.e., /usr/bin/osascript.

You can either call the command as "/usr/bin/osascript", or create an alias in your .tcshrc file like this:

alias osascript /usr/bin/osascript

Without calling it full path or with an alias like above, you will get an error like this:

Syntax error -1750. Couldn't get error text because of error -1750.

Running it full path fixes that.

[ Reply to This | # ]