• 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: System calls in AS (was: Re: Unixy question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System calls in AS (was: Re: Unixy question)


  • Subject: Re: System calls in AS (was: Re: Unixy question)
  • From: Wade Riddick <email@hidden>
  • Date: Fri, 10 May 2002 01:14:13 -0500

>At 10:10 AM -0700 5/9/02, Michael Kelly wrote:
>>I know about "do shell script", as mentioned in a previous post -- I was
>>specifically wondering about the C stuff.
>>
>>I guess I should stop thinking of AppleScript in terms of Perl or C... :)
>
>What you are thinking of is an osax, or scripting addition. These are
>event handlers which can call C/C++ or whatever. There is no generic
>"system" handler which compiles arbitrary C/C++ code, nor is there really
>a thing like this in other languages. The "system" call you are thinking
>about is more "do shell script" than anything else. This is how Java and
>Basic implement their "do shell script" equivalents.

There are a few tricks to get the developer tools to compile and execute
Objective C code at runtime, thus creating a BASIC-like environment,
self-modifying code and all sorts of other no-nos. A solution was posted a
while ago at the email@hidden list. You would need some glue
code to turn it into a scripting addition. Handling error messages would
add an extra layer of fun.

What's more interesting is a way of passing messages directly from
applescript objects to Objective C and back.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: System calls in AS (was: Re: Unixy question) (From: Michael Kelly <email@hidden>)
 >Re: System calls in AS (was: Re: Unixy question) (From: Jon Pugh <email@hidden>)

  • Prev by Date: Re: Reversing the lines in a file
  • Next by Date: Re: Scripting Excel X
  • Previous by thread: Re: System calls in AS (was: Re: Unixy question)
  • Next by thread: Re: Unixy question
  • Index(es):
    • Date
    • Thread