• 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: problem with save a Pages document under 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with save a Pages document under 10.5


  • Subject: Re: problem with save a Pages document under 10.5
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 25 Jun 2008 10:27:41 +0200


Le 24 juin 2008 à 21:21, KOENIG Yvan a écrit :

Hello

Here is a stripped script which opens a .doc file in Pages and save it aas Pages and as Pdf.

It works flawlessly under 10.4.11.

Under 10.5, the instruction


save front document as "com.apple.iwork.pages.pages" in nouveauChemin0 (* Must save as .pages before exporting *)


fails with error -50
"The document cannot be saved in the "Pages document" format!"

I don't understand why and of course I don't find any workaround.
…
try
tell application theApp
open leDocument as alias
log "point 1"
save front document as "com.apple.iwork.pages.pages" in nouveauChemin0 (* Must save as .pages before exporting *)
log "point 2"
save front document as newType in nouveauChemin
log "point 3"
close front document saving no (* Already saved *)
end tell -- Pages

on error MsgErr number NroErr
log MsgErr
log NroErr
end try
--[SCRIPT]



Thanks to all of you ;-)

I received no response but I found the workaround.

save front document as "com.apple.iwork.pages.pages" in nouveauChemin0

works with 10.4 but not with 10.5.

Happily,

save front document  in nouveauChemin0

works in both systems.

Yvan KOENIG (from FRANCE mercredi 25 juin 2008 10:27:24)


_______________________________________________ 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: 
 >problem with save a Pages document under 10.5 (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Airport Utility scripting
  • Next by Date: Re: Airport Utility scripting
  • Previous by thread: problem with save a Pages document under 10.5
  • Next by thread: osascript shell commands using AppleScript
  • Index(es):
    • Date
    • Thread