Professional Web Applications Themes

How to run compiled AppleScript script from C - Mac Programming

Apple RunScript.c show how to run script from script text but how to run an already compiled script ?...

  1. #1

    Default How to run compiled AppleScript script from C

    Apple RunScript.c show how to run script from script text
    but how to run an already compiled script ?
    Alain Guest

  2. #2

    Default Re: How to run compiled AppleScript script from C

    In article <168.1.3>,
    ca (Alain Birtz) wrote:
     

    Use OSAExecute.

    Patrick
    --
    Patrick Stadelmann <ch>
    Patrick Guest

  3. #3

    Default Re: How to run compiled AppleScript script from C


    In RunScript.c theComponent is given by
    theComponent = OpenDefaultComponent(kOSAComponentType, typeAppleScript);
    but scriptID is given by
    err = OSACompile(theComponent, &scriptTextDesc, kOSAModeNull, &scriptID);

    err = OSAExecute(theComponent, scriptID, kOSANullScript, kOSAModeNull,
    &resultID);

    How to get scriptID without compiling the script ?



    In article <fu-berlin.de>,
    Patrick Stadelmann <ch> wrote:
     
    >
    > Use OSAExecute.
    >
    > Patrick[/ref]
    Alain Guest

  4. #4

    Default Re: How to run compiled AppleScript script from C

    In article <168.1.3>,
    ca (Alain Birtz) wrote:
     

    Pass the compiled script data to OSALoad to get the scriptID.

    Patrick
    --
    Patrick Stadelmann <ch>
    Patrick Guest

Similar Threads

  1. unusual behaviour of perl script compiled with perlapp on hp-ux11i
    By strepxe@yahoo.co.uk in forum PERL Modules
    Replies: 1
    Last Post: May 8th, 07:33 PM
  2. AppleScript
    By jcc31 webforumsuser@macromedia.com in forum Macromedia Freehand
    Replies: 3
    Last Post: January 22nd, 11:03 PM
  3. Net::POP3->new() fails in PerlApp compiled script
    By Eric in forum PERL Miscellaneous
    Replies: 3
    Last Post: September 24th, 04:22 AM
  4. Net::POP3->new() fails in PerlApp compiled script
    By Eric McDaniel in forum PERL Modules
    Replies: 0
    Last Post: September 22nd, 04:28 PM
  5. applescript?
    By Barbara Brundage in forum Adobe Photoshop Elements
    Replies: 12
    Last Post: August 9th, 01:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139