• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pages & AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pages & AppleScript


  • Subject: Re: Pages & AppleScript
  • From: Deivy Marck Petrescu <email@hidden>
  • Date: Sun, 15 Feb 2009 20:26:31 -0500


On Feb 15, 2009, at 12:55, KOENIG Yvan wrote:

Hello

I'm trying to automate some changes in Pages documents.

I am able to get all of them working but one refuse to apply.

--[SCRIPT]
tell application "Pages" to tell document 1
set cg to get count of graphic
set liste to {}
if cg > 0 then
repeat with i from 1 to cg
if placement of graphic i is moving then copy i to end of liste
end repeat
if liste is not {} then
repeat with i from 1 to count of liste
set j to item i of liste
set placement of graphic j to fixed
delay 0.2
get placement of graphic j
end repeat
end if -- liste
end if -- cg …
end tell -- document of application
--[/SCRIPT]

The property 'placement' of graphic items
whose property was {placement:moving}
remains moving.

Is there a way to change it ?

Yvan KOENIG (from FRANCE dimanche 15 février 2009 16:53:03)

Well, I did not read properly the message so I did the opposite, but it worked.
So ...

Here is a concise script
<script>

tell application "Pages" to tell document 1
set the placement of every graphic whose placement is fixed to moving
end tell 

</script>


Let me know if this works for you.


Deivy Petrescu
email@hidden

 _______________________________________________
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

  • Follow-Ups:
    • Re: Pages & AppleScript
      • From: KOENIG Yvan <email@hidden>
References: 
 >Pages & AppleScript (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Pages & AppleScript
  • Next by Date: (no subject)
  • Previous by thread: Re: Pages & AppleScript
  • Next by thread: Re: Pages & AppleScript
  • Index(es):
    • Date
    • Thread