• 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: Using list from text file to create folder, search, and copy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Using list from text file to create folder, search, and copy
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Shell-wrap a file in 2 variable strings (From: Gnarlodious <email@hidden>)
 >Re: Shell-wrap a file in 2 variable strings (From: Axel Luttgens <email@hidden>)
 >Using list from text file to create folder, search, and copy (From: email@hidden (Christopher Rosado))
 >Re: Using list from text file to create folder, search, and copy (From: Walter Ian Kaye <email@hidden>)
 >Re: Using list from text file to create folder, search, and copy (From: email@hidden (Christopher Rosado))
 >Re: Using list from text file to create folder, search, and copy (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Using list from text file to create folder, search, and copy
  • Next by Date: Re: Command Line Fix for Locked Files?
  • Previous by thread: Re: Using list from text file to create folder, search, and copy
  • Next by thread: Re: Using list from text file to create folder, search, and copy
  • Index(es):
    • Date
    • Thread