Re: preflighting a file
Re: preflighting a file
- Subject: Re: preflighting a file
- From: "Marc K. Myers" <email@hidden>
- Date: Mon, 18 Feb 2002 18:54:26 -0700
- Organization: [very little]
Date: Tue, 19 Feb 2002 08:28:12 +1100
Subject: Re: preflighting a file
From: Shane Stanley <email@hidden>
To: AS lists <email@hidden>
>
> ------------------------ 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.
On my system the offset command allows me to enter a string and it
matches on that whole string (case sensitive), not on the first
character thereof. Without help from third parties. (OS 9.2.1 AS 1.6)
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[02/18/2002 6:51:25 PM]
_______________________________________________
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.