I'd never thought about it, but man!, wouldn't it be amazing if you could use all the Mac developer gooodies to develop any website? XCode for web apps? AppleScript instead of JavaScript? WebKit on Rails? I mean, by all accounts, AppleScript is much more readable and human friendly than JavaScript... I wonder if it would it be possible to abstract JavaScript to a point where I could write something as simple as this (which is AppleScript syntax)?
tell application "MarsEdit"
activate
make new post window
tell post window 1
set title to "[[pageTitle]]"
set link to "[[pageURL]]"
set body to "[[bodyText]]"
end tell
end tell
Imagine this, just for example, running in any webapp:
tell webapp "30boxes"
activate
make new vcalendar event
tell post vcalendar event 1
set title to "[[eventTitle]]"
set link to "[[eventURL]]"
set body to "[[bodyText]]"
end tell
end tell
Ok, so again, I'm not much of a codesmith, but that seems pretty simple, even for me.
💬 Comments from the original post