• 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: preflighting a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: preflighting a file (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Wow, this is strange...
  • Next by Date: (no subject)
  • Previous by thread: Re: preflighting a file
  • Next by thread: Re: preflighting a file
  • Index(es):
    • Date
    • Thread