script to opne windows browse folder

script to opne windows browse folder

am 20.12.2007 18:05:17 von danny

I'm new to this group so I hope I'm posting to the correct location.
Anyway, I'm using FMPro v7 on Windows and accessing a database located
on a Filemaker Pro server. I need to create a script that simply opens
a dialog box and lets me select a file to open. The catch is:
1. the file is not a fmpro database file. There wil be several files
to chose from and they may be pdfs, Word, Excel, and such. So the open
file commnad gives me an error since it expects a fmpro database.
2. the folder where the files live is not local. They live on the
FMPro server so I need to be prompted to open a share.

Any input on how to do this?

Danny

Re: script to opne windows browse folder

am 20.12.2007 20:16:15 von ursus.kirk

Depending on your set up look into the Open URL and/or Send Event script
steps. I would probably use the sent event. The path of the file you want to
open can be any textfield (correctly formatted) thus it would be no prablem
to define multiple items through your file, or even multiple items per
record. A typical calculation for your file could look:

cPIC < calculation, text,
"image:./afb/" & cKID_AID & ".jpg"

cURL < calculation, text ,
"e:\progs\irfanview\i_view32.exe " &
Substitute ( cPIC ;["image:.";"d:\filemaker"];["/" ;"\\"])
& " /hide=15 /fs"

The send event would look:
Send event ["aevt";"odoc"; cURL)

When the script is fired The program i_view is started opening a jpg that
resides within the folder afb. You could use as many CASE lines to cover all
your needs.

When creating the field that holds the link to be open you have to enter the
path completely correct. If there are any more then one user I would regard
this as bad practice since you can't control how many users are trying to
access the same file at the same time.

Keep wel, Ursus

"Danny" schreef in bericht
news:e57bf276-b792-4934-b71a-006ea40d256a@l32g2000hsh.google groups.com...
> I'm new to this group so I hope I'm posting to the correct location.
> Anyway, I'm using FMPro v7 on Windows and accessing a database located
> on a Filemaker Pro server. I need to create a script that simply opens
> a dialog box and lets me select a file to open. The catch is:
> 1. the file is not a fmpro database file. There wil be several files
> to chose from and they may be pdfs, Word, Excel, and such. So the open
> file commnad gives me an error since it expects a fmpro database.
> 2. the folder where the files live is not local. They live on the
> FMPro server so I need to be prompted to open a share.
>
> Any input on how to do this?
>
> Danny