Automatically tag the current year in Evernote using Textexp

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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!
notengoojotas
 
Posts: 2
Joined: Sat Dec 20, 2014 5:48 am

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.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks! How can I do that?
notengoojotas
 
Posts: 2
Joined: Sat Dec 20, 2014 5:48 am

That's a more general AppleScript question. I'd search around for more AppleScript-specific resources out there.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support