• 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: Populating a variable from a txt file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Populating a variable from a txt file


  • Subject: Re: Populating a variable from a txt file
  • From: email@hidden
  • Date: Mon, 13 Feb 2012 18:40:48 -0800

On Feb 13, 2012, at 5:02 PM, Stan Cleveland wrote:

set  bannedList to paragraphs of (read alias "MacHD:Users:stanc:Desktop:PhoneNumbers.txt")

That work's perfectly, Stan.  Thank you very much!



On Feb 13, 2012, at 5:33 PM, Shane Stanley wrote:

-- delete blank entries at end
repeat while item -1 of bannedList = ""
set bannedList to items 1 thru -2 of bannedList
end repeat

Shane, bannedList gets emptied when I use this code.  Am I supposed to tweak it for my application or should it work "as-is"?

Thanks again,
Mark
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Populating a variable from a txt file
      • From: Shane Stanley <email@hidden>
References: 
 >Populating a variable from a txt file (From: email@hidden)
 >Re: Populating a variable from a txt file (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Populating a variable from a txt file
  • Next by Date: Re: Populating a variable from a txt file
  • Previous by thread: Re: Populating a variable from a txt file
  • Next by thread: Re: Populating a variable from a txt file
  • Index(es):
    • Date
    • Thread