Re: Is it possible to specify language in the script itself (to overwrite "default scripting language")?
Re: Is it possible to specify language in the script itself (to overwrite "default scripting language")?
- Subject: Re: Is it possible to specify language in the script itself (to overwrite "default scripting language")?
- From: jj <email@hidden>
- Date: Wed, 30 Aug 2006 10:27:00 +0200
- Thread-topic: Is it possible to specify language in the script itself (to overwrite "default scripting language")?
> Sometimes I want to script in AppleScript, and sometimes in
> JavaScript. Is is possible to have some special construct in the
> script which will tell Script Editor that this particular script
> written in JavaScript so it could "digest" it even if JavaScript is
> not "Default Scripting Language"
>
> Thanks,
>
> Andrei Tchijov
There is the "in" parameter of the "run script" command. Ie:
run script "x = 5" in "javascript" --> 5
jj
--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden