Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Apple should make JavaScript its default scripting language.
micmath
follow
0
6-27-2008 12:26 PM
82 views
tags:
javascript
,
apple
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Related Clips
Firefox 3.1 Beta 1 Out
Programming Cheat Sheet Round-up.
An Absolute Goldmine of Web Design Education
Why TraceMonkey is Going to Blow Your Web ...
JS Charts - free charts for your website, ...
Think Firefox 3 is fast? Try Firefox Minef...
rapidshare time limits
More clips from
micmath
Zodiac Suite
Today's Top Clips
Joint Chiefs Planned Terror Attacks in U.S A...!
19 Ways to Enhance Your Sense of Humor
Denmark's Kinder, Gentler System of Eugenics
Pull people out of themselves: to see their behavior from different perspective
Christmas Colors for the White House: Red, White and Impeach
Mothers 'Killed Sons to End War'
Where are all the Acorns?
A New Picture
Antarctic peninsula marine life
He's Not Black
visit the
Top Clips page
View the Top Clips from
June 27, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://www.clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/b93d89ee-3fa8-4fe4-b8b2-4aff3f3494a6/37FB505E-DF5F-4229-AA01-1633745DB245/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.red-sweater.com/blog/502/apples-script" href="http://www.red-sweater.com/blog/502/apples-script" style="font-size: 11px;">www.red-sweater.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.red-sweater.com/blog/502/apples-script"><STRONG>Apple should make JavaScript its default scripting language.</STRONG></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.red-sweater.com/blog/502/apples-script"><P> There, I said it. It wasn’t easy, because I hold a soft spot in my heart for AppleScript. But I’m slightly more of a pragmatist than a romantic. If JavaScript is what Apple cares most about, and JavaScript is where massive performance improvements are going to be made, then Apple should leverage those improvements to the benefit of every desktop scripter. </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.red-sweater.com/blog/502/apples-script"><P> The idea of using JavaScript as a Macintosh scripting language is not new. Mark Aldritt of <A href="http://www.latenightsw.com/">Late Night Software</A> has for years published a plugin called <A href="http://www.latenightsw.com/freeware/JavaScriptOSA/">JavaScript OSA</A> which provides the functionality I’m talking about. Here’s a simple script in AppleScript to activate iTunes: </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.red-sweater.com/blog/502/apples-script"><PRE>tell application "iTunes" activate end tell </PRE></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.red-sweater.com/blog/502/apples-script"><P>And here is the same action written with JavaScript OSA: </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.red-sweater.com/blog/502/apples-script"><PRE>with (MacOS.appBySignature('hook')) { activate() } </PRE></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/37FB505E-DF5F-4229-AA01-1633745DB245/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK