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


Click here to return to the 'Help With Applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Help With Applescript
Authored by: walchang on Apr 27, '04 09:06:16PM
Hi, i know this is kinda off topic, but i got a mac recently and just decided to start learning applescript, and i am having a bit of trouble getting used to it. For example, just trying to make a simple example of opening a safari webpage and setting the url, i typed this up:

tell application "Safari"
	activate
	set page to make new document
	set URL of page to "http://www.yahoo.com"
end tell
and it gives me an error: NSReceiverEvaluationScriptError:4. Even though when i look at other applescripts i can actually understand the code easily, i find that its hard to actually write useful scripts (for me of course, but maybe thats just becuase i suck at it) Coming from a java programmer background, are there any resources i should check to get more familiar with it? I tried the documentation from the ADC, but im still kinda baffled by it; the docs seem kinda outdated.

[ Reply to This | # ]