Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7780777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:00:52+00:00 2026-06-01T19:00:52+00:00

How do you call an AppleScript process from an AIR native process? Background: I’ve

  • 0

How do you call an AppleScript process from an AIR native process?

Background:
I’ve created a script.scpt file and placed it in the root src directory of project.

I’m getting this error with what I have:

Error: Error #3219: The NativeProcess could not be started. 'launch path not accessible'

What I have:

var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
var file:File = File.applicationDirectory.resolvePath("MyScript.scpt");
var processArgs:Vector.<String>;

nativeProcessStartupInfo.executable = file;
nativeProcessStartupInfo.workingDirectory = File.applicationDirectory;

processArgs = new Vector.<String>();
processArgs[0] = "foo";

nativeProcessStartupInfo.arguments = processArgs;

process = new NativeProcess();
process.start(nativeProcessStartupInfo);

Solved
For it to work I needed the absolute path to “osascript” which is the command that runs scripts. In this case that command can be found in (along with a ton of other goodies)
Macintosh HardDrive > usr > bin > osascript

Note: The “usr” directory is hidden. The path is “/usr/bin/osascript”

var file:File = File.applicationDirectory.resolvePath("/usr/bin/osascript");

After that I passed the script file name as an argument. It also needs the working directory to be set to the directory of the script otherwise you get:

  ERROR - osascript: script.scpt: No such file or directory
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:00:54+00:00Added an answer on June 1, 2026 at 7:00 pm

    Answer added to the original post.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to call a IBAction within a cocoa app from applescript: I
To call AppleScript from Python, I use the appscript bridge: http://appscript.sourceforge.net/ What can I
Specifically, In OSX 10.6 from a system call, I want to open a file
Call me a 'n00b', but I am new to creating Script Controls. I want
I call a javascript function from a textbox by using OnKeyPress=clickSearchButton() Here is my
I call a certain div from another page with jquery to be loaded into
I call an ajax enabled wcf service method , <script type=text/javascript> function GetEmployee() {
Call main.lua script at each game loop iteration - is it good or bad
I'm trying to write an Applescript that will make an outgoing Skype call at
call = https://aaa@api.twilio.com/2010-04-01/Accounts/sasa/Calls.xml fields = { To : +12321434, From : req.body.from } request.post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.