• 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 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.

  • Follow-Ups:
    • Re: Using list from text file to create folder, search, and copy
      • From: Walter Ian Kaye <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: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Mount volume without error dialog
  • Next by Date: Re: Mount volume without error dialog
  • 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