• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: tell application to my_function()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tell application to my_function()?


  • Subject: Re: tell application to my_function()?
  • From: "Paul F. Henegan" <email@hidden>
  • Date: Thu, 28 Apr 2005 03:26:41 -0400

on 28.04.2005 03:00, Matthew Bogosian at email@hidden wrote:

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

Hi Matthew,

Try assigning the value to a variable, such as:

set the_URL to "http://www.apple.com/";
showWeb(the_URL)

Peace,

paul
--
Paul F. Henegan
<email@hidden>

 _______________________________________________
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

References: 
 >tell application to my_function()? (From: Matthew Bogosian <email@hidden>)

  • Prev by Date: tell application to my_function()?
  • Next by Date: Re: tell statement changing
  • Previous by thread: tell application to my_function()?
  • Next by thread: Re: tell application to my_function()?
  • Index(es):
    • Date
    • Thread