Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 16, 2009, 12:24 PM   #1
Holmes89
macrumors regular
 
Join Date: Mar 2008
Location: Pittsburgh, PA
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 GHz
32gig iPod touch
22" Acer Monitor
Holmes89 is offline   0 Reply With Quote
Old Sep 16, 2009, 03:09 PM   #2
xStep
macrumors 68000
 
Join Date: Jan 2003
Location: Indianapolis, for an unknown time
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
xStep is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC