Skip to main content

AppleScript and flexibility

Posted in

I just got an email from a Pukka user who was wondering if private posting could be enabled by default. While this is not currently available natively, it can still be accomplished now using AppleScript. Based off of an earlier post about using AppleScript to duplicate the bookmarklet's functionality, I modified the script slightly to add these lines at the end:

tell application "Pukka"
    set private posting to true
end tell

Then, when the AppleScript is run to perform the bookmarklet's JavaScript, it also sets private posting to on, but lets you still pull the trigger to submit the link. This way, you can still turn private posting off if you like.

While you can easily run AppleScripts from the AppleScript menu (enabled in Applications -> AppleScript -> AppleScript Utility), I recommend a faster solution such as Quicksilver or FastScripts which can link an AppleScript to a single keystroke. That way, you could have one keystroke to ready a Pukka post as public and another to ready it as private.

Grab the new script here. Thanks to Joseph for the inspiration!

Trackback URL for this post:

https://codesorcery.net/trackback/49