The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Developer > AppleScripting Omni Apps
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Toggle button to show notes text in Marked Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Here's a script that shows the note text from the currently selected row in Marked (version 1). I made it use the standard version of the application, but it should probably work with Professional as well. I have it set up as a toggle button on my toolbar as shown here. If Marked is open, clicking the button causes it to quit. Otherwise it pops up and floats with the text of the notes for the selected row.

Code:
if application "Marked" is not running then 
	tell application "OmniOutliner"
		set xNote to note of selected row of front document as text
	end tell
	do shell script "echo " & quoted form of xNote & "> /Users/YourUsername/some_file.txt"
	do shell script "open -a \"Marked.app\" $HOME/some_file.txt"
	tell application "Marked" --This part keeps Marked on top
		activate
		tell application "System Events"
			key down command
			key down shift
			key down "F"
			delay 0.5
			key up command
			key up shift
			key up "F"
		end tell
	end tell
else
	tell application "Marked"
		quit
	end tell
end if
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -8. The time now is 01:35 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.