Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

AppleScript

89 views
Skip to first unread message

Nick

unread,
Mar 14, 2012, 3:58:21 PM3/14/12
to Tags Users
I was poking around today but couldn't figure out how to create tagged
items via AppleScript. Anyone know?

tell application "Tags"
set newTag to make new TagItem with properties {title:"Blah",
path:"http://caseapps.com", tags:{"testing"}}
end tell

This yields: error "Tags got an error: AppleEvent handler failed."
number -10000

Martin (Gravity)

unread,
Mar 19, 2012, 7:20:02 AM3/19/12
to Tags Users
Have a look at the examples from the Help menu

Nick

unread,
Mar 20, 2012, 8:11:18 AM3/20/12
to Tags Users
Hi Martin,

Can you point out where these examples in the Help menu are? I have
not been able to find any good applescript examples for The Hit List
thus far!

NIck

Martin (Gravity)

unread,
Mar 20, 2012, 10:01:32 AM3/20/12
to Tags Users
Just open the Help menu within Tags and click on "Automator and Script
Examples". A Finder window opens for a folder with the examples opens
than. There are two Applescript examples in it.
I don't think you can use it for tagging items from "The Hit List".
"The Hit List" uses their own database format for the individual items
and for tagging purposes we would need a file for each entry.

Nick

unread,
Mar 21, 2012, 10:39:49 AM3/21/12
to Tags Users
I think I totally brain-farted. After some searching I found the help
item you are talking about after turning off "Hide Dock Icon" in the
preferences and restarting. Then I could actually access the help
menu of Tags.

The reason I mentioned THL was because that was the app that was front-
most and I couldn't find anything. Seriously, I need to pay more
attention!
Reply all
Reply to author
Forward
0 new messages