Re: Name Conflicts
Re: Name Conflicts
- Subject: Re: Name Conflicts
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 12 Jun 2003 16:29:01 -0400
Subject: Name Conflicts
Date: Thu, 12 Jun 2003 10:02:08 -0400
From: Steve Cunningham <email@hidden>
To: "AppleScript Listserv" <email@hidden>
I'm sure I must be missing something simple about "tell me" here but I
keep running into the problem where a name used by an osax conflicts
with
a name used in an application.
Here is an example using the osax "24U Appearance OSAX" and FileMaker
Pro
where I am trying to create a progress bar:
set aBar to create progress indicator with properties {maximum:10}
tell application "FileMaker Pro"
tell me
set aBar to create progress indicator with properties {maximum:10}
end tell
set aBar to my (create progress indicator with properties
{maximum:10})
set aBar to create progress indicator with properties {maximum:10}
end tell
the "set aBar" outside of the FileMaker Pro tell works but all of the
three forms within the tell fail with the diagnostic
"expected ',' or '}' but found ':'"
apparently because "maximum" is a Filemaker Keyword.
I also tried:
set aBar to create progress indicator with properties {|maximum|:10}
That gets past the complier, but the osax doesn't recognize "|maximum|"
as "maximum".
I thought what was supposed to happen is that the "tell me" or "my" was
supposed to pass the "create" to the parent script instead of FileMaker
which would then pass it to the osax.
Can someone "tell me" what is going on and how to handle this situation
in general?
Since I've been using OS X I've found that osax calls sometimes don't
work well within tell blocks to applications. What I do is put the
osax calls outside the tell block in a handler that I call from inside
the tell block. I've had no problems using this technique.
on aBarH(theMax)
create progress indicator with properties {maximum:theMax}
end aBarH
tell application "FileMaker Pro"
set aBar to aBarH(10)
end tell
Marc [06/12/03 4:28:26 PM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.