Re: Incompatible Applescript
Re: Incompatible Applescript
- Subject: Re: Incompatible Applescript
- From: Uli Kusterer <email@hidden>
- Date: Wed, 14 Jun 2006 22:09:46 +0200
Am 14.06.2006 um 20:00 schrieb Jerrod Fowkes:
p.s. I understand that applescript can be extended per application.
I have the same version here...but I didn't know that the core
scripting language can change fundamentally from OS version to OS
version. I have all the latest updates for both macs. If
Applescript is this "breakable" from OS version to OS
version...then what is the point? Any further information /
discussion would be helpful here as well.
Ok I have figured out what the issue was. In this line :
add filename to playlist my_new_playlist
it should have been
add alias filename to playlist my_new_playlist
in order for it to work on both platforms or both "versions" of the
applescript engine.
I wonder how many other "soubtleties" I can uncover since this one
costed me 3 hours of development.
AppleScript's type system is missing lots of coercion handlers. As
you found out, Apple have added a few (in this case, a string ->
alias coercion handler) in recent system versions. The way Apple
doesn't expose data types but somehow still exposes them is IMHO one
of the main issues of AppleScript.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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