|
|
 |  |
Re: Events ErrorFrom: Franklin Marmon Date: Friday, July 18, 2003
Time: 10:48:19 am
After significant debugging what I've found is that the script works
fine if the 'ApacheConf.fp5' db is in the foreground (executed from
ScriptEditor) but fails if MainMenu.fp5 is in the foreground.
FileMaker seems to be requiring db in the foreground to execute 'create
new record'. This script, when executed from within the OG GUI creates
a new, empty, 'Event' record in OG, rather than a new record in
'ApacheConf.fp5'. I get the same behavior if I change 'tell window' to
'tell database' within FileMaker (note: tell database doesn't seem to
work from ScriptEditor).
the 'Object not found.' error is appearing when filemaker tries to 'go
to record newrecord' because 'newrecord' doesn't exist since 'create
new record' created a record in the wrong file.
I've tried entering various gross hacks like 'open file apacheConf'
where apacheConf is the path to the ApacheConf.fp5 file. This didn't
work. I also tried doing this, which didn't work with an odd error ('A
number can't got after this property')
tell window "ApacheConf.fp5" of application "FileMaker Pro"
set index 1
end tell
As I understand the FileMaker Pro AppleScript dictionary, you use 'set
index #' to reposition a window within the program. I could be wrong
there, but it looks that way to me.
Ideas?
frm
On Friday, July 18, 2003, at 10:19 AM, Shawn Hogan wrote:
> Franklin Marmon wrote:
>
>> When executing this applescript:
>>
>> tell window "ApacheConf.fp5" of application "FileMaker Pro"
>> set maxrecords to count records
>> create new record
>> set newrecord to maxrecords + 1
>> go to record newrecord
>> set data field "Login" to "<Login>"
>> set data field "Product_ID" to "<BProdID>"
>> do script "select_first_domain"
>> do script "do_recalc"
>> do script "do_ssh"
>> delete record newrecord
>> end tell
>>
>> from inside a 'Create Billing Cycle' event in OG I get the error:
>> "FileMaker
>> Pro got an error: Object not found". However, if I paste this
>> applescript
>> into the script editor while OG is running (and the appropriate files
>> are
>> open), replace <Login> with "test1" and <BProdID> with
>> 'BASIC_HOSTING' (a
>> product in our copy of OG) the script executes without flaw.
>>
>> Am I missing something or is FileMaker receiving an error because it
>> can't
>> find the objects 'Login' or 'BProdID'? If so, is this a bug are am I
>> just
>> being dense?
>
> Not sure... try cutting out some script steps to narrow it down to the
> specific line...
>
> - Shawn
>
> ----------------------------------
> Shawn D. Hogan
> President, Digital Point Solutions
> http://www.digitalpoint.com
> (858) 452-3696
>
>
> ---------------------------------------------------
> To subscribe, unsubscribe or to search list archive
> please visit http://www.optigold.com/lists/isp.html
> ---------------------------------------------------
---------------------------------------------------
To subscribe, unsubscribe or to search list archive
please visit http://www.optigold.com/lists/isp.html
---------------------------------------------------
|
Messages In This Thread:- Events Error by Franklin Marmon on Jul 17, 2003 at 3:32:26 pm
|

Return to Digital Point Solutions' Home Page |