NationStates Jolt Archive


Can someone help

Heiligkeit
28-04-2005, 03:07
set save_location to (choose folder with prompt "Choose where to save screenshots")
tell application "Safari"
activate
repeat with shotcount from 1 to 100
do JavaScript "window.location.reload()" in front document
(do shell script "screencapture " & quoted form of POSIX path of save_location & "screen" & (shotcount as string) & ".pdf")
end repeat
end tell

When I run it, I get:

Safari got an error: NSArgumentEvaluationScriptError

Could someone tell me the problem please?

Thanks
Jjuulliiaann
01-05-2005, 00:58
My script finally generated a bug! Did you upgrade to Tiger? That is most likely the problem. When I get Tiger in about a week, I'll help you. Until then, I will try, but it will be difficult. Maybe you updated Safari or JavaScript. Any info would help.

I'm glad to see that you've been using my script! It worked fine before now, right?
Heiligkeit
01-05-2005, 23:59
My script finally generated a bug! Did you upgrade to Tiger? That is most likely the problem. When I get Tiger in about a week, I'll help you. Until then, I will try, but it will be difficult. Maybe you updated Safari or JavaScript. Any info would help.

I'm glad to see that you've been using my script! It worked fine before now, right?
I did not upgrade to tiger. i did not update anything as far as I know. My dad might have done something...Thanks!! I can wait. Take your time.

Yes, it was excellent. Thanks
Jjuulliiaann
02-05-2005, 21:24
I did not upgrade to tiger. i did not update anything as far as I know. My dad might have done something...Thanks!! I can wait. Take your time.

Yes, it was excellent. ThanksI don't know what could have happened... When does it give you this error? Mine seems to be working fine. I'm going to upload my version of the script online, and you can download it and see if it works. I'll upload it as soon as my server starts working again, which should be pretty soon.
Jjuulliiaann
02-05-2005, 21:36
http://travisemergency.com/downloads.html
It's acting REALLY slow right now, so you may want to wait a while, but you could try.
OK, It's working at top speed now. I've tested the process from beginning to end now. Just follow that link, download the script, open it, ect. You still have to force quit it with command-option-escape to quit it, though.
Jjuulliiaann
03-05-2005, 22:34
Well, I recreated your error. You're missing the delay (60 * 60) line after the (do shell script "screencapture " & quoted form of POSIX path of save_location & "screen" & (shotcount as string) & ".pdf" line. You could just add that in (on its own line) or just download my script. Either one, although I would recommend downloading it because I am positive that it works.
Heiligkeit
03-05-2005, 23:38
I forgot to include the
Dealy (60*60)
In my last post but I still got:

Safari got an error: NSArgumentEvaluationScriptError
Heiligkeit
03-05-2005, 23:40
And I downlaoded yours.

A page opens saying:

NSArgumentEvaluationScriptError
Jjuulliiaann
04-05-2005, 00:27
I forgot to include the
Dealy (60*60)
In my last post but I still got:Well, you could try "Delay" instead of "Dealy." Where do you get this error? In Safari?
Jjuulliiaann
07-05-2005, 23:35
Bump for Heiligkeit.