Re: Using list from text file to create folder, search, and copy
Re: Using list from text file to create folder, search, and copy
- Subject: Re: Using list from text file to create folder, search, and copy
- From: email@hidden (Christopher Rosado)
- Date: Mon, 2 Feb 2004 15:45:54 -0500
Unfortunately not. Still getting "End of File error" @ read alias
datafile
This time the script doesn't seem to read the text file before
returning the error.
Here's what the Event log is showing for the new script:
tell current application
path to desktop
alias "Macintosh HD:Users:chris:Desktop:"
read alias "Macintosh HD:Users:chris:Desktop:find.txt"
"End of file error."
This is the event log from the old script:
tell current application
path to desktop
alias "Macintosh HD:Users:chris:Desktop:"
open for access alias "Macintosh HD:Users:chris:Desktop:find.txt"
61
read 61 before "
"
"testfolder
IMG_0134.JPG
IMG_0211.JPG
IMG_0334.JPG"
read 61 for 1
"End of file error."
On Feb 2, 2004, at 3:04 PM, Walter Ian Kaye wrote:
>
Hmm... someone mentioned once about problems with before/until...
>
maybe this is what they were talking about.
>
>
So I guess we'll do it differently. Try this:
>
>
set desktopPath to (path to desktop) as string
>
set datafile to desktopPath & "find.txt"
>
set paras to read alias datafile
>
set folderName to paragraph 1 of paras
>
set fileList to paragraphs 2 thru -1 of paras
>
{folderName, fileList}
>
>
Better behavior?
>
>
>
-Walter
>
_______________________________________________
>
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.