Page 1 of 1

Automatically tag the current year in Evernote using Textexp

PostPosted: Sat Dec 20, 2014 7:04 am
by notengoojotas
Hi, this is my first post, I've been reading the site and it's great!

I've searched for this on the forum and couldn't find anything related.

I want to automatically tag the current year in Evernote using Textexpander or AppleScript or anything, really. So I got a rule that runs an applescript when a file gets tagged on Yosemite.

tell application "Evernote"
activate
create note from file theFile notebook {"Archives"} tags {".y", "othertag"}
end tell

Problem is that I want Textexpander to replace ".y" with the current year when creating the evernote tag.

I'm open to suggestions if you can provide a better method, maybe using applescript only, maybe using automator, I don't know, I've tried everything and I'm just tired of this thing.

Thanks!

Re: Automatically tag the current year in Evernote using Tex

PostPosted: Mon Dec 22, 2014 5:13 pm
by Mr_Noodle
If I understand things correctly, TextExpander is not suitable in this instance. It's more for when you are interactively typing stuff, not as a general text replacement in scripts and other areas. Since you are using an AppleScript, you can use the script itself to insert the year there as needed.

Re: Automatically tag the current year in Evernote using Tex

PostPosted: Thu Dec 25, 2014 9:40 am
by notengoojotas
Thanks! How can I do that?

Re: Automatically tag the current year in Evernote using Tex

PostPosted: Fri Dec 26, 2014 2:57 pm
by Mr_Noodle
That's a more general AppleScript question. I'd search around for more AppleScript-specific resources out there.