• 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: Calling a C Subroutine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a C Subroutine


  • Subject: Re: Calling a C Subroutine
  • From: "Roger Howard" <email@hidden>
  • Date: Mon, 12 Jan 2009 09:06:37 -0800 (PST)

On Fri, January 9, 2009 8:39 am, 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?

If you have a more general desire to write C-based extensions and call
them from AppleScript, then I saw some others offer advice, from using
simple C apps via Do Shell Script, or building Scripting Additions. If you
just need to checksum data/files, though, there's a built in "md5" command
on all OSX machines, which you can call from AppleScript via do shell
script - only, of course, if that tool does what you want.

 _______________________________________________
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

References: 
 >Calling a C Subroutine (From: Gil Dawson <email@hidden>)

  • Prev by Date: Re: Where to log lines go
  • Next by Date: Re: Where to log lines go
  • Previous by thread: Re: Calling a C Subroutine
  • Next by thread: Re: Calling a C Subroutine
  • Index(es):
    • Date
    • Thread