Mac services / applescript

  • Thread starter Thread starter Deleted member 49549
  • Start date Start date
D

Deleted member 49549

Guest
Hi all,

Just started playing around with evernote again. I have downloaded a service that clips selected text to evernote.

http://api.cld.me/0X3a1d3p1u1D0Y2s0N05/download/Clip Text to Evernote.workflow.zip

Here's the applescript:-
Code:
on run {input, parameters}
	
	set noteTitle to (paragraph 1 of (input as text))
	
	try
		tell application "System Events"
			get first application process whose frontmost is true
			get name of window 1 of result
			set noteTitle to ("Clipped from " & result & ": " & noteTitle)
		end tell
	end try

How can i get the script to show evernote at the end of the script?

And secondly, any ideas how to make a script to do the following:-
  • if evernote window is not open, open and bring to front
  • if evernote window is open but not foremost, bring to front
  • if evernote window is open and foremost, close evernote window
 
Back
Top