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 18:21:50 -0500
Thanks, Shane-
Still getting "End of file error". The error is now occurring @ (read
fref)
set desktopPath to (path to desktop) as string
set datafile to desktopPath & "find.txt"
set fref to open for access alias datafile
set folderName to read fref before return
set fileList to every paragraph of (read fref)
close access fref
{folderName, fileList}
On Feb 2, 2004, at 5:09 PM, Shane Stanley wrote:
>
On Feb 3, 2004, at 5:15 AM, Christopher Rosado wrote:
>
>
> set folderName to read fref before return
>
> read fref for 1 -- skip return
>
>
You don't need that second line. Although the command is "read
>
before", it actually reads _until_ but returns _before_.
>
>
--
>
Shane Stanley <email@hidden>
>
_______________________________________________
>
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.