Re: preflighting a file
Re: preflighting a file
- Subject: Re: preflighting a file
- From: Shane Stanley <email@hidden>
- Date: Tue, 19 Feb 2002 14:45:18 +1100
On 19/2/02 2:24 PM +1000, Kai Edwards, email@hidden, wrote:
>
Wouldn't this work?...
>
>
set theFile to open for access (choose file)
>
set theData to read theFile
>
close access theFile
>
if "CalGray" is in theData then display dialog "I wouldn't if I were you..."
>
>
(Accepting of course that limiting the read command - with something like
>
'for 4024' - might still be required where large files may be involved.)
As long as theData is never more than 32K, that should work.
--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.