Re: preflighting a file
Re: preflighting a file
- Subject: Re: preflighting a file
- From: Andy Wylie <email@hidden>
- Date: Tue, 19 Feb 2002 12:16:37 +1300
on 19/2/02 10:28 AM, Shane Stanley at email@hidden wrote:
>
On 19/2/02 6:00 AM +1000, Emmanuel, email@hidden, wrote:
>
> ------------------------ untested & unverified
>
> set theFile to open for access alias thePath -- you provide thePath
>
> set theText to read theFile
>
> close access theFile
>
> if offset of "CalGray" in theText is not 0 then
>
> -- do whatever suitable
>
> end
>
> ------------------------
>
>
Except that's going to give you the offset of the first "c" in the file, not
>
"CalGray", without help from third parties.
offset of "CalGray" in "c2C4c6C8CalGray"
-- 9
offset of "CalGray" in "c2C4c6C8"
-- 0
third parties???
_____________________________ Andy
_______________________________________________
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.