Re: Sorting IP addresses
Re: Sorting IP addresses
- Subject: Re: Sorting IP addresses
- From: Marconi <email@hidden>
- Date: Thu, 18 Dec 2003 23:51:13 -0700
At 4:44 PM -0500 12/18/03, Graff wrote:
>
Here is a solution which takes a file, sorts the IP addresses and saves them to another file. The file is saved on the Desktop and is named after the property FILE_NAME. If the file already exists the script will add "- 1", "- 2", etc. to the name:
"There was an error reading from..."
>
----------
>
property FILE_NAME : "sorted"
>
>
set theFile to choose file
>
try
>
set openedFile to open for access theFile
>
set theEOF to get eof openedFile
>
set theData to read openedFile for theEOF
>
close access theData
>
on error
>
display dialog "There was an error reading from " & (theFile as text)
>
close access theData
>
end try
...
_______________________________________________
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.