Hi Darren,
Daniel Farnan wrote about printing. I hadn't given it a thought.
Though I didn't mention it there I've been moving more and more to
save to pdf then encouraging users to print from that.
We have any thing up six printers as end points at our office and my
print scripts are going to need a good going over.
Thank you for the variable definition.
I would have gone off branching the script then defining two
variables. duh.
I'd be interested in your thoughts on Utility tables in a multi file
solution. I recall a long thread once on FM Techtalk on variables and
globals which possibly you were a contributor to.
Kind Regards
Eric
PS Is there a convention here on to versus bottom posting ?
On 28/10/2009, at 7:03 AM,
[hidden email]
wrote:
> On Oct 27, 2009, at 2:52 AM, Eric Wright wrote:
>
>> Any suggestions for the quickest and most efficient way to abstract
>> Get System Platform to handle the differences where needed.
>
> Hi Eric:
>
> I don't know about utility scripts that you can lift out, because
> most of the platform-sensitive script steps are extremely context
> dependent. For instance, Import Records and Export Records (both of
> which take a platform-sensitive path to the target file).
>
> The biggest areas where I've seen cross-platform sensitivity in FM
> are:
>
> Import Records
> Export Records
> Export Field Contents
> Open File
> (all of which take a platform-specific path that I usually
> construct in a variable)
>
> Print Setup
> Print
> (both of which actually store both the Mac and Windows printer
> settings, but can be difficult to fix/modify without platform-
> specific versions of each, in my experience)
>
> Then there are the platform-specific script steps, like Perform
> Applescript.
>
> For constructing a path, I generally do this:
>
> Set Variable [ $path ;
> Case ( Abs ( Get ( SystemPlatform )) = 1 ; "filemac:" ;
> "filewin:" ) & Get ( DesktopPath ) & "thefilename.pdf" ]
>
> or whatever. The point is using Abs on Get ( SystemPlatform ) to
> check for 1 (Mac).
>
> HTH
>
>
>
> regards,
> Darren
>
> ******************************
> Darren Terry
[hidden email]
_______________________________________________
FMPexperts mailing list
[hidden email]
http://lists.ironclad.net.au/listinfo.cgi/fmpexperts-ironclad.net.au