Re: iWork/Pages problems
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