 |
 |
Applescript interface w/ Interface Builder?
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2001
Status:
Offline
|
|
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
|
|
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
|
|
Wow, someone certainly was thinking ahead, by about 4 months. 
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Mar 2001
Status:
Offline
|
|
AS Studio was announced in July at MWNY.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jul 2000
Location: Washington, DC
Status:
Offline
|
|
Silly me...you're right, but they still didn't realize it...
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Nov 2001
Location: Seattle, WA
Status:
Offline
|
|
-- 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
|
|
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
|
|
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 
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|