• 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: A newbie's problems with Pages and Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A newbie's problems with Pages and Applescript


  • Subject: Re: A newbie's problems with Pages and Applescript
  • From: KOENIG Yvan <email@hidden>
  • Date: Sat, 30 Oct 2010 23:07:15 +0200


Le 30 oct. 2010 à 22:43, KOENIG Yvan a écrit :


Le 29 oct. 2010 à 23:37, alma-services.abel.co.uk a écrit :



set n to count of the_paragraphs

set le_document to choose file of type {"com.apple.iwork.Pages.sffPages", "com.apple.iwork.Pages.Pages"}
tell application "Pages"
open le_document
end tell

may be what you need.

A detail bothers me.
In your main script I read :

repeat with p from 1 to n

If my eyes did correctly their duty, the variable n isn't define before this instruction.

Yvan KOENIG (VALLAURIS, France) samedi 30 octobre 2010 22:42:55

Oops, my eyes seem to be tired, they missed the instruction defining n as the count of the_paragraphs.

Time to switch off and sleep.

Yvan KOENIG (VALLAURIS, France) samedi 30 octobre 2010 23:06:51


 _______________________________________________
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

References: 
 >A newbie's problems with Pages and Applescript (From: "alma-services.abel.co.uk" <email@hidden>)
 >Re: A newbie's problems with Pages and Applescript (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: A newbie's problems with Pages and Applescript
  • Next by Date: Re: A newbie's problems with Pages and Applescript
  • Previous by thread: Re: A newbie's problems with Pages and Applescript
  • Next by thread: Re: A newbie's problems with Pages and Applescript
  • Index(es):
    • Date
    • Thread