• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is it possible to specify language in the script itself (to overwrite "default scripting language")?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Is it possible to specify language in the script itself (to overwrite "default scripting language")? (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Re: Invoke Exposé via an Applescript
  • Next by Date: Re: Is it possible to specify language in the script itself (to overwrite "default scripting language")?
  • Previous by thread: Is it possible to specify language in the script itself (to overwrite "default scripting language")?
  • Next by thread: Re: Is it possible to specify language in the script itself (to overwrite "default scripting language")?
  • Index(es):
    • Date
    • Thread