• 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
do shell script "sort" not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

do shell script "sort" not working


  • Subject: do shell script "sort" not working
  • From: Chris Tangora <email@hidden>
  • Date: Tue, 8 Nov 2005 15:12:39 -0500

OK, I spent an entire day trying to get this darn thing to work, and now I am ready to go bald.  Please some help me!

I am working on a script that makes a list of names.  Using the write command in AS I get a file named UnsortedImages.log containing all the names I need.  I would like to get the list sorted using "sort" so that I can run a "uniq" after and get a list without repetitive names.  I've tried this both as a list and as a string with returns in it.  I then try to do a shell script of 'sort' and it just doesn't work!  Can someone take a look and tell me if there is something I am missing? 

Thanks in advance.


set RootFileFolder to ("HardDrive:Users:User:Scripts:PDF_Image_Counter")

set ImagesUsed_log to (RootFileFolder & ":ImagesUsed.log") as string
set ImagesUsed_POSIX to POSIX path of ImagesUsed_log
set ImagesSorted_log to (RootFileFolder & ":ImagesSorted.log") as string
set Imagessorted_POSIX to POSIX path of ImagesSorted_log

set sort_script to ("sort -o " & Imagessorted_POSIX & " " & ImagesUsed_POSIX)
do shell script sort_script



If someone wants the rest of the script, just let me know...


Chris Tangora
Daytona Beach News-Journal
386.681.2748
chris.tangora <at> news-jrnl <dot> com



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: do shell script "sort" not working : Thanks!
      • From: Chris Tangora <email@hidden>
    • Re: do shell script "sort" not working
      • From: pete boardman <email@hidden>
    • Re: do shell script "sort" not working
      • From: Martin Orpen <email@hidden>
    • Re: do shell script "sort" not working
      • From: Kevin Walzer <email@hidden>
    • Re: do shell script "sort" not working
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: osacompile [Was "Editable?"]
  • Next by Date: eppc: and crashes
  • Previous by thread: Re: osacompile [Was "Editable?"]
  • Next by thread: Re: do shell script "sort" not working
  • Index(es):
    • Date
    • Thread