Re: inconsistencies in getting a non-existent object
Re: inconsistencies in getting a non-existent object
- Subject: Re: inconsistencies in getting a non-existent object
- From: Paul Skinner <email@hidden>
- Date: Tue, 28 May 2002 07:19:02 -0400
OS X version 10.1.4 / Applescript verion 1.8.2b4 / Script Debugger 3.0.3
script foo
script test1
end script
end script
on run
try
get test2 of foo
--get result
on error e number n
display dialog e & n
end try
end run
-->No error. No Dialog. Result undefined.
In fact even this generates no errors in debugger
script foo
end script
set a to a of foo
set b to bar of foo
set x to item 1 of (x of foo) as list
-->{item 1 of x} The AE Print for this reference is obj { form:'indx', want:
type('cobj'), seld:1, from:obj { form:'usrp', want:type('prop'),
seld:"bar", from:'null'() } }
Why is this referencing "bar"?
On Monday, May 27, 2002, at 07:45 AM, has wrote:
I wrote:
- In Script Editor it displays a dialog "Can't make some data into the
bhg
expected type.-1700"
- In Smile it gives the dialog "Can't get test2.-1728"
- When running as an applet, I get the same error as SE.
- Script Debugger 3.0.3, however, swans right through the script, no
dialog
appearing at all.
What the #@$*!! is the reason for such horribly inconsistent behaviour
between these different environments?
A couple additional notes:
- I'm using OS8.6/AS1.3.7.
- Deivy Petrescu mailed me off-list to say that on his system
[OS10.1/AS1.8.1] he gets "Can't get test2.-1728" in both Smile _and_ SE.
[Hasn't got SD to test, however.]
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta
AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.