tell application to my_function()?
tell application to my_function()?
- Subject: tell application to my_function()?
- From: Matthew Bogosian <email@hidden>
- Date: Thu, 28 Apr 2005 00:00:31 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Howdy all,
I am a long-time programmer who is new to AppleScript. I have a
(hopefully quick) question. I have an application called "my_app" that
I'm writing in AppleScript using AppleScript Studio. It has a
subroutine showWeb(a_url) (a_url is a string).
I'm writing another script to try to call my_app's showWeb(...)
subroutine. Here's what I'm doing in the second script:
tell application "my_app"
set web_window to window "WebWindow"
tell web_window to set alpha value to 0.5
tell web_window to show
showWeb("http://www.apple.com/")
end tell
Unfortunately, when I try to run the secondary script, it keeps
presenting the error: "Can't continue showWeb." (the other commands
work fine). Incidentally, showWeb(...) calls other subroutines defined
in my_app (if that makes a difference).
I have been trying to search the web/mailing list archives to no avail.
I even found a site that said I should do exactly what I've been doing
but it doesn't seem to work for me (see #6 here):
http://scotlandsoftware.com/articles/applescript/
Any help would be greatly appreciated.
-- Matt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iD8DBQFCcIoWnLpDzL5I7l8RAsLhAJ9gle0zj2yTrOT5yfB3dj9XCrOgpwCdFafX
0RKblFwyJN7b2omotBlLSxk=
=PIx/
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden