Re: iTunes and AppleScript
Re: iTunes and AppleScript
- Subject: Re: iTunes and AppleScript
- From: John Stiles <email@hidden>
- Date: Fri, 25 Aug 2006 14:41:52 -0700
I'll try to experiment with this some more today and let you know if
I get any mileage out of moving the timeout blocks around.
Right now I am sidelined on a different task :|
On Aug 25, 2006, at 12:15 PM, Matt Neuburg wrote:
On Fri, 25 Aug 2006 10:36:44 -0700, John Stiles
<email@hidden> said:
On Aug 25, 2006, at 10:34 AM, Matt Neuburg wrote:
On or about 8/25/06 9:39 AM, thus spake "Daniel Jalkut"
<email@hidden>:
Behaving
"just like Script Editor" (and unfortunately, running with
NSAppleScript does not achieve that) isn't the only measure of
success
Yes, and I'm still mystified why the timeout isn't throwing an
error; if
NSAppleScript somehow doesn't obey timeouts, that would be yet
another
failure on its part. m.
OK, so now we're all on the same page
No, no, that's not what I mean. I'm saying that timeout *does* work in
NSAppleScript. Here's the error message from one that I tried just
now:
[Session started at 2006-08-25 12:12:23 -0700.]
2006-08-25 12:12:27.026 NSAppleScriptTimeoutTest[958] {
NSAppleScriptErrorBriefMessage = "AppleEvent timed out.";
NSAppleScriptErrorMessage = "Finder got an error: AppleEvent timed
out.";
NSAppleScriptErrorNumber = -1712;
NSAppleScriptErrorRange = <0000002c 00000034 >;
That is the "right answer" when something times out. What I want to
know is
why *your* event is not timing out. I'm suggesting that you might
need to
test your script in something like Script Editor. Tweak it there
until the
timeout works. If you can do that (and I'm not guaranteeing that
you can),
it should work in NSAppleScript too. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden