• 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: Sorting IP addresses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Sorting IP addresses (From: Marconi <email@hidden>)
 >Re: Sorting IP addresses (From: Steve Mills <email@hidden>)
 >Re: Sorting IP addresses (From: Graff <email@hidden>)
 >Re: Sorting IP addresses (From: Marconi <email@hidden>)
 >Re: Sorting IP addresses (From: Graff <email@hidden>)

  • Prev by Date: [OT] Airport card device name
  • Next by Date: Re: Sorting IP addresses
  • Previous by thread: Re: Sorting IP addresses
  • Next by thread: Re: Sorting IP addresses
  • Index(es):
    • Date
    • Thread