• 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: Passing argumenst to C executable from Apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing argumenst to C executable from Apple script


  • Subject: Re: Passing argumenst to C executable from Apple script
  • From: SVV Satyanarayana <email@hidden>
  • Date: Fri, 18 Apr 2008 15:06:54 +0530

I have directory "Test" which consists of MyScript.scpt (Apple script file created from script editor) and an executable MyTest.exe (compiled C program).
MyTest.exe takes two parameters as arguments. (Example to run it "./MyTest name age")
MyScript.scpt must show a dialog to accept two parameters and when user presses OK button, it must call my MyTest executable with necessary data from script.

I think I gave clear description now.
please revert back if not clear.

SVV Satyanarayana
Bangalore, India


On 18-Apr-08, at 1:30 PM, Philip Aker wrote:
On 08-04-17, at 21:57, SVV Satyanarayana wrote:

From Apple script, I am showing a dialog with few textboxes and a button. On click of the button, I want to call some "C" executable with arguments as strings in textboxes. How can I do this?

To call command line tools, use the 'do shell script' command. Details are in the Standard Additions dictionary.

It's not clear from your post whether or not you are in an AppleScript Studio project and whether or not you are targeting a tool or a scriptable application.
To target a scriptable application use the form:

tell application "System Events"
activate
set flist to path of every file of desktop folder whose visible is true
choose from list flist
end tell
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30


 _______________________________________________
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

  • Follow-Ups:
    • Re: Passing argumenst to C executable from Apple script
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Passing argumenst to C executable from Apple script (From: SVV Satyanarayana <email@hidden>)
 >Re: Passing argumenst to C executable from Apple script (From: Philip Aker <email@hidden>)

  • Prev by Date: Keystroke
  • Next by Date: Re: Keystroke
  • Previous by thread: Re: Passing argumenst to C executable from Apple script
  • Next by thread: Re: Passing argumenst to C executable from Apple script
  • Index(es):
    • Date
    • Thread