• 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: iWork/Pages problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iWork/Pages problems


  • Subject: Re: iWork/Pages problems
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 20 Aug 2007 19:06:19 +0200


Le 20 août 07 à 15:21, Brennan a écrit :

Hi folks,

I'm trying to put together a script to convert my many Appleworks
documents to iWork documents.
…

Problem is, I can't see any way for my script to be able to tell whether a
.cwk document is new enough for pages to open it. Suggestions?

set p2d to (path to desktop) as Unicode text set mySampleFile to "WP56.cwk" set byte1 to read file (p2d & mySampleFile) for 1

if (ASCII number byte1) = 6 then
	display dialog "it's an AW6 doc"
else
	display dialog "it's not an AW6 doc"
end if

These few lines show a way to distinguish between AW6 aware documents and others.

Yvan KOENIG

_______________________________________________
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: 
 >iWork/Pages problems (From: Brennan <email@hidden>)

  • Prev by Date: Re: Saving Attachements to a folder
  • Next by Date: Re: iWork/Pages problems
  • Previous by thread: iWork/Pages problems
  • Next by thread: Re: iWork/Pages problems
  • Index(es):
    • Date
    • Thread