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 > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Today's Posts

 
AppleScripts questions Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Hi,

I've got 2 questions regarding OmniOutliner and AppleScripts:

1) Is it possible to check in an apple script if a row is numbered, and which numbering system it is using (legal, letters, numeric, etc.)?

2) Is there an elegant way of checking if a style name is applied to a given row. The only way I've found so far is a bit ugly and involves creating a temporary list of style names:

-- Ugly part begins
set theStyleNames to {}
set theNamedStyles to named styles of the style of theRow
repeat with theNamedStyle in every item of theNamedStyles
set theStyleNames to theStyleNames & (the name of theNamedStyle)
end repeat
-- Ugly part ends

if theStyleNames contains "Heading 1" then
-- do something clever here
else if theStyleNames contains "Heading 1" then
-- do something clever here
end if

Thanks a lot for your help!

Kind regards,

Julien
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Applescripts as Services in Omnifocus revwpb OmniFocus Extras 3 2009-12-13 05:52 AM
Using your own icons for your applescripts fudster OmniFocus Extras 0 2009-07-30 12:58 PM
AppleScripts not available for toolbar customisation Patrick J OmniOutliner 3 for Mac 2 2008-12-08 11:56 AM
Leopard-baked applescripts on Tiger machines RobTrew OmniFocus Extras 3 2007-12-22 10:12 AM
Several applescripts for OF spnyc OmniFocus Extras 2 2007-07-09 02:51 PM


All times are GMT -8. The time now is 03:18 AM.


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