Re: Calling a C Subroutine
Re: Calling a C Subroutine
- Subject: Re: Calling a C Subroutine
- From: Dave <email@hidden>
- Date: Mon, 12 Jan 2009 13:07:44 +0000
Hi,
You could write a scripting addition, then you could use the new
AppleScript commands to compute the checksum. I'm not sure how much
effort it involved in this, but I reckon it would be easier to just
re-code it in AppleScript (although it may be too slow). There is
some documentation on writing AppleScript additions on the Apple
Developer Website.
Hope this helps
All the Best
Dave
On 11 Jan 2009, at 02:19, Takaaki Naganoya wrote:
If your C subroutine accepts parameter from STDIN, call it by using
"do shell script" command from AppleScript.
On 2009/01/10, at 1:39, Gil Dawson wrote:
Hi--
I have an AppleScript Studio project that's working OK. I would
like to add a subroutine to compute a checksum. I have the fully
tested subroutine coded in C. I'd rather not recode it into
AppleScript, although I suppose I could.
Is there a way to call from Applescript a C subroutine, passing a
string and returning an integer?
I'd appreciate a reference to the documentation for this.
--Gil
_______________________________________________¥
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
PiyoCast Web (Podcasting with Music!)
http://www.piyocast.com
Free AppleScript Library "AS Hole"
http://www.piyocast.com/as/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40looktowindward.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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