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 Search Today's Posts Mark Forums Read

AppleScript move command Thread Tools Search this Thread Display Modes
<UPDATE> I've created the following thread in the Developper section which contains the same question:


I just wrote a piece of AppleScript which moves some rows to a subsection.
I wanted to write minimum stuff, using the move command, but it appears that if I use it, the rows are only deleted, and not copied to where I want.
So, as a workaround, I had to first duplicate them, and then delete them.

Here's an example of what I've done:

duplicate (every child of theRow whose state is checked) to end of children of oDoneSection
delete (every child of theRow whose state is checked)
Here's what I wanted to write (which should basically do the same):
move (every child of theRow whose state is checked) to end of children of oDoneSection
Has anyone experienced trouble with the move command??


Last edited by bholveck; 2012-01-05 at 02:08 AM.. Reason: Found the AppleScript section in the forum!
I find that this works:

tell application id "OOut"
	tell front document
		set {rowList, rowDone} to {child 1, child 2}
		set refDone to a reference to (children of rowList where state is checked)
		move refDone to end of children of rowDone
	end tell
end tell
Thanks Rob,
I don't really understand why applying the move on a reference works better.

It seems like this is helping the internal events sequence of a move not messing with the data.

At least I've learned something new!

Well, the reference is a pointer to the thing itself, rather than the address of a copy.

Reminds me of that choice (often quite puzzling at 6am, I find) between brushing one's teeth and trying to brush the reflected teeth in the mirror ...

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
OO3 move command broken? bholveck AppleScripting Omni Apps 2 2012-01-18 10:26 AM
AppleScript references with no set or command MLModel OmniOutliner 3 for Mac 1 2010-11-21 11:34 AM
Applescript Duplicate command: how to use it? Lutin OmniFocus Extras 6 2007-10-30 12:56 AM
'Move to trash' command for Downloads Gregory OmniWeb Feature Requests 10 2006-05-24 07:49 PM
AppleScript 'do script' command Bcpst OmniWeb Feature Requests 2 2006-05-06 11:08 PM

All times are GMT -8. The time now is 05:47 AM.

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