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 Today's Posts

 
Application file id for OmniOutliner Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
e.g.

Code:
property pCreatorCode : "OOut"

tell application id "com.apple.systemevents"
	try
		set procOO to first process where creator type is pCreatorCode
	on error
		display dialog "OmniOutliner is not running"
		return
	end try
	set strName to name of procOO
end tell

set strScript to "
script
	on CountRows()
		tell application " & quote & strName & quote & "
			if count of documents > 0 then
				tell front document
					set strMsg to \"Number of rows in \" & name as string & \" is \" & (count of rows) as string
					display dialog strMsg
				end tell
			end if
		end tell
	end CountRows
end script
"
set oScript to run script strScript
CountRows() of oScript
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
OmniOutliner file displayed as directory? marcussommer@mac.com OmniPresence 9 2013-04-11 10:55 AM
OmniOutliner file locations benmadin OmniOutliner 3 for Mac 6 2013-02-21 04:58 PM
OmniOutliner slow in opening large file dmdmd OmniOutliner for iPad 1 2012-02-08 10:28 AM
Omnioutliner file corrupt after downloading from FTP site. mikecni OmniOutliner 3 for Mac 2 2011-02-23 04:53 AM
OmniOutliner File Attachment Issue Cypher OmniOutliner 3 for Mac 2 2008-01-07 03:47 AM


All times are GMT -8. The time now is 08:01 PM.


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