• 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
Executing a shell command from apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Executing a shell command from apple script


  • Subject: Executing a shell command from apple script
  • From: Anupama Nuthakki <email@hidden>
  • Date: Wed, 25 May 2005 11:19:16 -0400

Hi,


  I am trying to run an unix shell command from my apple script,and i attached this script to a hotfolder on my desktop. The functionality of my folder action is that when i drop a tif file in to my hot folder it will call rgbseps unix  script  passing filename as one argument and output filename as 2nd argument  and separations1 as 3rd,separations2 as 4th and separations3 as 5th arguments.


Below is my code.I am getting an error like separations can't be done.Could you please help me with this

Thanks
Anu.Nuthakki
DuPont

on adding folder items to this_folder after receiving dropped_items
    set item_count to number of items in dropped_items
    repeat with i from 1 to item_count
        set the_dropped_file_path to item i of dropped_items
        set item_info to info for the_dropped_file_path
        set item_path to the quoted form of the POSIX path of the_dropped_file_path
        if name extension of item_info is "tif" then
            try
                display dialog ("Item #" & i as string) & ": " & ((POSIX path of the_dropped_file_path) as string)

                do shell script ("rgbseps  " & item_path & "  test  1.0  1.0  1.0 ")
            on error
                display dialog "Error:Can't make separations"
                return
            end try
            --end tell
        end if
    end repeat
    display dialog "Separations done"
end adding folder items to

This communication is for use by the intended recipient and contains information that may be privileged, confidential or copyrighted under applicable law. If you are not the intended recipient, you are hereby formally notified that any use, copying or distribution of this e-mail, in whole or in part, is strictly prohibited. Please notify the sender by return e-mail and delete this e-mail from your system. Unless explicitly and conspicuously designated as "E-Contract Intended", this e-mail does not constitute a contract offer, a contract amendment, or an acceptance of a contract offer. This e-mail does not constitute a consent to the use of sender's contact information for direct marketing purposes or for transfers of data to third parties.

Francais  Deutsch  Italiano  Espanol  Portugues  Japanese  Chinese  Korean
www.dupont.com/corp/email_disclaimer.html

 _______________________________________________
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: Executing a shell command from apple script
      • From: Christopher Nebel <email@hidden>
    • Re: Executing a shell command from apple script
      • From: pete boardman <email@hidden>
    • Re: Executing a shell command from apple script
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Scripting the Screen Saver
  • Next by Date: Re: Entourage Bcc and cc
  • Previous by thread: RE: About the System Information command
  • Next by thread: Re: Executing a shell command from apple script
  • Index(es):
    • Date
    • Thread