CrossOver Support - Community Forums

Important Information These are community forums and not official technical support. If you need official support: Contact Us

CrossOver Mac
Discussion about CrossOver Mac

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

How to run AppleScript or .app from inside crossovers bottle.

I work on a program designed in C++ to run on windows, but the program is being used by some of our clients running Macs by installing it with crossovers. It works fine for the most part but our email generating has a problem. I wrote code to generate an applescript that will create an email for the mac but I am having issues executing it.

Things I've tried:

1) ```
sprintf(cmd, "osascript -e 'tell app \"Finder\" to open POSIX file \"%s/%s\"'", getcwd(path, MAXPATHLEN), file);
system(cmd);


    The system command never seems to execute with this method.

2) I created a .app using applescript that when run, it executes my mail generating applescript. I tried running the script and the .app with ShellExecute() but it will just open the script or .app in the AppleScript Editor and WINE explorer respectively.

I'm assuming the windows environment that Crossover is creating in its "Bottle" is preventing me from running the scripts or .app. Is there anyway to get around this and accomplish running the script or .app?

Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzMxNDM1MjAzLCJjc3JmX3Rva2VuIjoieXVFNlBkSnlYdEtkWm5nRyIsImdkcHIiOjB9