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 interface w/ Interface Builder?

Applescript interface w/ Interface Builder?
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2001
Status: Offline
Reply With Quote
Aug 29, 2001, 02:46 PM
 
I'm working on creating a set of scripts to pull images off of a PhotoCD, allow for renaming of each one, saving them as Tiffs then saving them from there to many different formats and sizes...

I've got the last part of the problem all worked out using Graphic Converter and photoshop. Now, I'd like to start on the initial importing part.

Is it possible to create an interface with Interface Builder and somehow link the buttons, fields and panels to an Applescript. I'd like to take input, shove images to an image panel and move/copy images to several locations using applescript.

Does this make sense?

If anybody has successfully done this or at least knows where to look, please get back to me....

Thanks in advance!

-Jeremy Fernsler
     
Senior User
Join Date: Mar 2000
Location: Ithaca, NY
Status: Offline
Reply With Quote
Sep 1, 2001, 12:48 PM
 
I'm afraid this is one of things that won't "just work" out of the box. IB doesn't have any sort of direct Applescript integration. The best you'll be able to do at this point will be to whip up a simple Cocoa app and run your Applescript from within the app using OSA calls from the Carbon framework. I was actually talking with a guy who wanted to work on a tool that would do exactly what you're describing, allowing an Applescript to use more complex interfaces than "display dialog" by means of a Cocoa wrapper application. But for now, you'll either have to write it yourself or wait for someone else to write it.
     
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Feb 22, 2002, 05:27 AM
 
Wow, someone certainly was thinking ahead, by about 4 months.

How did it come to this? Goodbye PowerPC. | sensory output
     
Senior User
Join Date: Mar 2001
Status: Offline
Reply With Quote
Feb 22, 2002, 01:54 PM
 
AS Studio was announced in July at MWNY.
     
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Feb 22, 2002, 04:26 PM
 
Silly me...you're right, but they still didn't realize it...

How did it come to this? Goodbye PowerPC. | sensory output
     
Junior Member
Join Date: Nov 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Feb 22, 2002, 06:01 PM
 
-- I'm afraid this is one of things that
-- won't "just work" out of the box. IB
-- doesn't have any sort of direct
-- Applescript integration. The best you'll
-- be able to do at this point will be to
-- whip up a simple Cocoa app and run your
-- Applescript from within the app using OSA
-- calls from the Carbon framework.

OK, I'm thoroughly confused, now. I thought that AppleScript Studio will do what the original poster wanted. Can you not make connections from the interface via the application "Interface Builder" to your code in the application "Project Builder" using Outlets? I didn't think it mattered whether you were using Objective C, C, C++ or AppleScript. (Obviously I don't know the answer to this, but I THOUGHT you could from what little literature I read.)

[ 02-22-2002: Message edited by: DP Roberts ]
     
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Feb 22, 2002, 11:37 PM
 
Originally posted by DP Roberts:
<STRONG>-- I'm afraid this is one of things that
-- won't "just work" out of the box. IB
-- doesn't have any sort of direct
-- Applescript integration. The best you'll
-- be able to do at this point will be to
-- whip up a simple Cocoa app and run your
-- Applescript from within the app using OSA
-- calls from the Carbon framework.

OK, I'm thoroughly confused, now. I thought that AppleScript Studio will do what the original poster wanted. Can you not make connections from the interface via the application "Interface Builder" to your code in the application "Project Builder" using Outlets? I didn't think it mattered whether you were using Objective C, C, C++ or AppleScript. (Obviously I don't know the answer to this, but I THOUGHT you could from what little literature I read.)</STRONG>
This post was made 4 months ago, or 2 or so months before AppleScript Studio came out. That's what the "thinking ahead" is
     
Junior Member
Join Date: Nov 2001
Location: Seattle, WA
Status: Offline
Reply With Quote
Feb 23, 2002, 01:12 PM
 
Originally posted by Synotic:
<STRONG>This post was made 4 months ago, or 2 or so months before AppleScript Studio came out. That's what the "thinking ahead" is </STRONG>
...that was really stupid of me.

It's all clear now--thanks for being kind about it
     
   
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 02:53 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