• 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: Read file questions ... again!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read file questions ... again!


  • Subject: Re: Read file questions ... again!
  • From: Charles Heizer <email@hidden>
  • Date: Tue, 23 Apr 2002 12:05:24 -0700

Hi Stephen,
No, I dont think so? I have not been able to get it to work. If you say before the 8th char it will only read the first 7 chars, right? Well, I need to disregard the first 7.

Syntax -

tell application "Finder"
activate
if file "EDM Settings" of preferences folder exists then
set themessage to "It's there!"

set theFile to (file "EDM Settings" of preferences folder)
set myData to (read theFile as list using delimiter {return})
set myData to item 3 of myData
else
set themessage to "It's not there!"
end if
display dialog myData
end tell


Thanks,

- Charles


On Monday, April 22, 2002, at 07:22 PM, Stephen Swift wrote:

At 4/22/02 8:12 PM, Charles Heizer (email@hidden) Wrote:

Now is there a "after" string? I would like to read
everything after the first 7 characters on each line.

There probably is, but wouldn't that be the same as before the 8th
character?

Stephen Swift
email@hidden
-----------------------------------------------
AppleScript Guru - The Mac Observer
http://www.macobserver.com/tips/applescript
_______________________________________________
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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: [AS]Re: Read file questions ... again!
      • From: Stephen Swift <email@hidden>
References: 
 >Re: Read file questions ... again! (From: Stephen Swift <email@hidden>)

  • Prev by Date: Re: Default or optional arguments to handlers
  • Next by Date: Re: Beep broken in 10.1.4?
  • Previous by thread: Re: Read file questions ... again!
  • Next by thread: Re: [AS]Re: Read file questions ... again!
  • Index(es):
    • Date
    • Thread