• 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: "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.

  • Prev by Date: Automatic scrolling
  • Next by Date: Re: preflighting a file
  • Previous by thread: Re: preflighting a file
  • Next by thread: Re: preflighting a file
  • Index(es):
    • Date
    • Thread