|
|
#1 |
|
Applescript and C
I want to make an Applescript that will display something to iChat, however I want it to get a string from a C program, is there a way for Applescript to run a C program to get this string? or is there a better way of doing this?
__________________
Black Macbook 2.4 GHz32gig iPod touch ![]() 22" Acer Monitor |
|
|
|
0
|
|
|
#2 |
|
I do know that you can return what is echoed. So adapt appropriately.
Code:
do shell script "echo `date`"
set myReturnedText to result
if the myReturnedText is "" then
display dialog "Script was Successful." buttons {"OK"} giving up after 2 default button 1
else
display dialog "Script returned: " & myReturnedText buttons {"OK"} giving up after 2 default button 1
end if
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Applescript, dual monitors, and full screen Chrome | drakino | Mac Programming | 8 | Aug 2, 2012 02:25 AM |
| Resolved: Applescript and lists | Roadrun3r | Mac Programming | 6 | Jun 5, 2011 06:20 AM |
| Handling Duplicate AppleScripts | the Otter | Mac Programming | 1 | Dec 22, 2010 05:53 AM |
| applescript and xcode build and run error | mrzman | Mac Programming | 2 | May 13, 2010 07:23 AM |
| Applescript and remote buddy and iPhone | benlee | Mac OS X | 1 | Jan 4, 2008 12:53 AM |
All times are GMT -5. The time now is 06:42 PM.




2.4 GHz

Linear Mode

