Re: AppleScript Error with FM8A
Re: AppleScript Error with FM8A
- Subject: Re: AppleScript Error with FM8A
- From: Bruce Robertson <email@hidden>
- Date: Thu, 05 Jan 2006 23:57:23 -0800
> Hello again,
>
> False alarm! Sorry for posting so quickly. It was a very stupid
> mistake. I forgot to change the name of the application to
> 'Filemaker Pro Advanced'. This is what happens when someone who
> doesn't really know what they're doing gets ahold of a power tool! =:\
>
> However, this does raise another question. Being that both
> 'FileMaker Pro' and 'Filemaker Pro Advanced' will be used to access
> this file, how can I get AppleScript to recognize either program in
> my code? Is there something like the 'Left' function in FMP, i.e. If
> (Left(Application Name, 9) = "FileMaker", then use that app ?
Are you using the applescript inside FileMaker or in an external script or
application? If inside FileMaker you do not need the tell statement.
Also, you're going to find that most of the time you need to be much more
explicit when dealing with applescript and FileMaker 8. Since a file can
have multiple tables connected to multiple layouts, "current record" is
ambiguous. Current record of which layout of which window?
Also - if you are moving or renaming a file, you don't need applescript to
do that, you can do that with standard FileMaker script variables and file
path references.
_______________________________________________
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