I'd like to have the ability to set up a hotkey that would bring up
the "new post from safari" window.
Though I guess you could implement some sort of global hotkey,
I'd be just as happy with an AppleScript hook. That way I could
write an AppleScript like:
tell application "Cocoalicious"
make new SafariPost
end tell
... or something like that. Then I could assign that script to a
Quicksilver trigger and I'd be all set.
Right now this can be accomplished with UI scripting:
tell application "Cocoalicious"
activate
end tell
tell application "System Events"
if UI elements enabled then
tell process "Cocoalicious"
set frontmost to true
tell menu bar 1
tell menu bar item "File"
tell menu "File"
click menu item "New Post from
Safari"
end tell
end tell
end tell
end tell
end if
end tell
But it would be nice to have a more direct and more intuitive
route.
Logged In: YES
user_id=1198144
Though I've a complete newbie to AppleScript, I've tweaked one of the
existing scripts linked to from the Sci-Fi page like so...
tell application "Safari"
set w to front window
set theTitle to name of w
set theURL to URL of document of w
end tell
tell application "Cocoalicious"
activate
make new post with properties {description:theTitle, url:theURL, tag
string:"test"}
end tell
This means I create a new entry from the scripts menu in Safari. BUT - I
guess I need the script to fire up Cocoalicious' dialog box so I can assign
tags.
Please does anyone know how to do this?