Re: Read file questions ... again!
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.