 |
 |
Attaching AppleScripts to Items in Interface Builder
|
 |
|
 |
|
Professional Poster
Join Date: Feb 2001
Location: Sydney, Australia
Status:
Offline
|
|
I want to know how to attach applescripts to items in interface builder.
Just simple things like:
open location "mailto:dcanaris@hotmail.com"
|
|
In vino veritas.
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
See /Developer/Documentation/CoreTechnologies/AppleScriptStudio.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Feb 2001
Location: Sydney, Australia
Status:
Offline
|
|
Let me explain further:
I have got a new sherlock channel project
And in a window I have got the button 'Contact Me'.
I thought it would be simple to simply connect an applescript to this button to "open location 'mailto:dcanaris@hotmail.com'.
However I have not figured out how to do this. Anyone with any idea on coding Sherlock Channels know a way to do this with or without AppleScript?
|
|
In vino veritas.
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Feb 2001
Location: Sydney, Australia
Status:
Offline
|
|
Would anyone have simplified instruction on how to write an Xquery trigger that will launch a URL and then connect it in Interface Builder?
I am seriously new to this.
(Last edited by undotwa; Dec 13, 2002 at 06:04 PM.
)
|
|
In vino veritas.
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status:
Offline
|
|
If you are trying to make Sherlock talk to other applications, I believe you are very limited in that. Sherlock simply isn't designed for complex projects of that sort. I've only glanced through the documentation, but by and large it appears to be very simple stuff. Javascript and XQuery are fairly simple.
What exactly are you trying to do?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
Ah. You may be screwed, in that case. There seems to have been a deliberate effort to keep Sherlock channels from being full-fledged Mac OS X programs. And for good reason -- with them being internet-based and automatically-updating, one could easily imagine a scenario in which someone masquerades as a channel provider and alters a script that says "open location 'www.foo.com'" with "tell app 'finder' to delete entire contents of startup disk" or some such.
What you might be able to do instead, though, is have a text field containing a clickable HTML mailto link. I haven't played with the Sherlock SDK enough to know for sure quite yet, so good luck. 
(Last edited by Rickster; Dec 13, 2002 at 06:14 PM.
)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
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
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|