Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript Stuio Unix?

AppleScript Stuio Unix?
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Aug 19, 2002, 12:20 AM
 
I don't have the Dev Tools installed, but I'm going to install them soon. I have questions on just what AppleScript Studio is and how it works.

You can make "real apps" with it. Does this mean that the AppleScript code is actually compiled into computer code, or are they just Applets with GUIs stuck to them? Next, can you make GUIless Unix apps with them. I know you can make a unix app that runs as a CGI really easy with the Dev tools, can you use AppleScript to do it? I know to get a 'normal' Script to run as a CGI, you have to jump through many a hoop, one of which is having a normal GUI program running in your dock at all times. I used to be dangerous at writing applescripts, if I could make real unix apps as CGIs with them, I would be a very happy DUDE, and my web sites would just get sicker and sicker as time when on.
(Last edited by l008com; Aug 19, 2002 at 01:59 AM. )
     
Mac Elite
Join Date: Sep 2000
Location: 'round the corner
Status: Offline
Reply With Quote
Aug 19, 2002, 01:30 AM
 
Well, applescript studio is like writing with Cocoa but instead using AppleScript to write it

i wrote this with AppleScript Studio:http://www.versiontracker.com/morein...&db=macosx

A sample would be:
on clicked theObject
if the Object is button "button" of window "window" then
display dialog "Balh!"
else
display dialog "BAHHH"
end if
end on clicked

simple enough!
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Aug 19, 2002, 01:58 AM
 
yeah that kinda isn't really what I asked though
     
Mac Enthusiast
Join Date: Nov 2001
Status: Offline
Reply With Quote
Aug 19, 2002, 03:10 AM
 
Originally posted by l008com:
I don't have the Dev Tools installed, but I'm going to install them soon. I have questions on just what AppleScript Studio is and how it works.

You can make "real apps" with it. Does this mean that the AppleScript code is actually compiled into computer code, or are they just Applets with GUIs stuck to them? Next, can you make GUIless Unix apps with them. I know you can make a unix app that runs as a CGI really easy with the Dev tools, can you use AppleScript to do it? I know to get a 'normal' Script to run as a CGI, you have to jump through many a hoop, one of which is having a normal GUI program running in your dock at all times. I used to be dangerous at writing applescripts, if I could make real unix apps as CGIs with them, I would be a very happy DUDE, and my web sites would just get sicker and sicker as time when on.
AppleScript code isn't compiled; open up an AppleScript studio application and you'll find a "Scripts" folder in the Resources folder. I pretty sure you can't make command-line apps with AppleScript studio.
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Aug 19, 2002, 03:32 AM
 
You can run an ASS app GUI-less just like you can run a normal Cocoa application GUI-less (that is, don't have it open any windows and set NSUIElement to 1 in its Info.plist), but no, you can't make a straight "UNIX" app with it. From what I can tell, an ASS app is basically a normal Cocoa app whose objects interact with an AppleScript you write. Thus, it always has to be 1) a bundle, and 2) a Cocoa application.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2