Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Output file path

25 views
Skip to first unread message

CRC123

unread,
Apr 30, 2013, 9:16:11 PM4/30/13
to
fmp12 pro and Go. Mac 10.7.5.
I have a script working properly that saves a set of pictures to a
specific existing folder. It specifies at the top level my startup
disk called DKS27. I have other computers with the same folder
structures but the startup disks are not DKS27. How do I make this
script universal to run on my other computers. Here is the working
script:

filemac:/DKS27/Users/Shared/New_Photos_2013/Active Files/ C_Inspected/
Go.Photo.Export/

Christoph Kaufmann

unread,
May 1, 2013, 2:54:57 PM5/1/13
to
CRC123 <c...@aalappraisals.ca> wrote:

> fmp12 pro and Go. Mac 10.7.5.
> I have a script working properly that saves a set of pictures to a
> specific existing folder. It specifies at the top level my startup
> disk called DKS27. I have other computers with the same folder
> structures but the startup disks are not DKS27. How do I make this
> script universal to run on my other computers.

Create a table where every record represents a path for a given
computer. Have the startup script detect what computer it runs on and
load the correct path into a global text field or variable.

--
Christoph Kaufmann
http://clk.ch

David Stone

unread,
May 1, 2013, 4:47:37 PM5/1/13
to
In article <1l27lhl.1qjkez31uqcj26N%clkau...@gmx.ch>,
That seems rather complicated. Can FMP12 not handle relative
paths? Alternatively, does FMP12 scripting not include file system
tools to do things like return common file paths and/or the machine
name?

Christoph Kaufmann

unread,
May 2, 2013, 1:18:54 AM5/2/13
to
David Stone <no.e...@domain.invalid> wrote:

[Create a table and put file paths into fields]
> That seems rather complicated.

It's easier just to hard code the paths in a script or function.

> Can FMP12 not handle relative
> paths?

Earlier versions ca do that, my guess is FMP12 can do it, too.

> Alternatively, does FMP12 scripting not include file system
> tools to do things like return common file paths and/or the machine
> name?

Look for functions rather than script steps; the get functions in
particular.

Jens Teich

unread,
May 2, 2013, 9:09:55 AM5/2/13
to
clkau...@gmx.ch (Christoph Kaufmann) writes:


>> Alternatively, does FMP12 scripting not include file system
>> tools to do things like return common file paths and/or the machine
>> name?

get( desktoppath ) and others.

~jens

CRC123

unread,
May 2, 2013, 11:51:53 AM5/2/13
to
I am not an expert here. How do I incorporate that into my script described above? Thanks all.

Christoph Kaufmann

unread,
May 2, 2013, 1:18:01 PM5/2/13
to
CRC123 <c...@aalappraisals.ca> wrote:

> How do I incorporate that into my script described above?

Set Variable ( $path ; [specify the desired path here] )
Export records ( $path )

Put a Filemaker file on you desktop and use the get ( filepath )
function to see how its path is phrased. Check the get (desktoppath )
function to see what it returns. Hard code the rest in your variable
calculation.

CRC123

unread,
May 2, 2013, 2:39:49 PM5/2/13
to
Wonderful. Thanks to all.
0 new messages