Help request: Applescript Application (Classic) error

Hi all,

I am trying to make a folder with subdirectories inside it. I also want to add an Applescript Application into these newly created folders.

The folder-making part is easy, I got that down.

But I am having trouble with putting the Applescript Application into these folders.

I’ve tried:

a) Copying the Applescript .app from a scripts path into the newly created path.
b) Writing the applescript itself to a text file, but saving it as a .app

I’ve tried both of the above in Applescript itself, so it creates the folder then tries to put an applescript .app into those folders.

My preference however is to use Perl to create the folders + subdirectories. Via Perl I’ve tried to also copy the file into the new directory and output a file saved as .app.

I keep running into the same problem - the .app appears as an “Application (Classic)” under Kind in the finder window, and doesn’t run on OS X Lion.

QUESTION:

How can one write an Applescript to a new file, save it as a .app, and actually have it work properly and not be a “Classic” application?

Thank you!

I am using Perl to write a file that I want to save as an .app - Applescript Application.

However, when I save

Simply appending .app to the file name isn’t sufficient. Here’s the info for one of my AppleScript apps:

I suspect you’ll have to get the Script Editor to compile the script for you or run it as text via osascript.

Are you sure your initial application isn’t a classic app? Because with Script Debugger you can save an app as either “bundle” or “carbon”. You definitely want “bundle” because “carbon” is classic. Same thing goes for a script “.scpt” there are classic or new style script files.