Illustrator CS3 - bring document to front?
Illustrator CS3 - bring document to front?
- Subject: Illustrator CS3 - bring document to front?
- From: Hamish Sanderson <email@hidden>
- Date: Tue, 1 Sep 2009 14:29:45 +0100
Hi all,
Just wondering if there's a simple, reliable way to change the
stacking order of windows in Illustrator CS3? My workflow needs to
keep several documents open at once, but I'm running into various AI
bugs when trying to script a document if its window isn't in front of
all the other AI windows. I can work around those bugs by bringing the
desired window to the front manually, but so far haven't found a way
to reorder windows using AS. e.g. Here are the sort of things I've
tried:
tell application "Adobe Illustrator"
move document 2 to before document 1 -- error: clone not allowed
end tell
tell application "Adobe Illustrator"
move view 1 of document 2 to before view 1 of document 1 -- error:
clone not allowed
end tell
tell application "Adobe Illustrator"
activate document 2 -- brings AI frontmost but does not affect its
window order
end tell
tell application "Adobe Illustrator"
activate view 1 of document 2 -- brings AI frontmost but does not
affect its window order
end tell
tell application "Adobe Illustrator"
select document 2 -- error: document 2 doesn’t understand the select
message
end tell
tell application "Adobe Illustrator"
select view 1 of document 2 -- error: document 2 doesn’t understand
the select message
end tell
I've also had a poke around System Events, but so far haven't seen
anything there that looks like it could do this.
Any suggestions or solutions would be much appreciated.
Thanks,
Hamish
--
Hamish Sanderson
Production Workflow Developer
Sun Branding Solutions Ltd
Tel: +44(0)1274 200 700
www.s-brandingsolutions.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden