Re: Populating a variable from a txt file
Re: Populating a variable from a txt file
- Subject: Re: Populating a variable from a txt file
- From: Shane Stanley <email@hidden>
- Date: Tue, 14 Feb 2012 14:34:19 +1100
On 14/02/2012, at 1:40 PM, email@hidden wrote:
> Shane, bannedList gets emptied when I use this code. Am I supposed to tweak it for my application or should it work "as-is"?
It works as-is. Many times the last character of a file is a return, and when you read and get the paragraphs, the last item in the list will be an empty string. This checks for that, and removes it if necessary.
I can't see any way it can empty bannedList...
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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