Jump to content
Sign in to follow this  
nixdorf

Button for create/open folder

Recommended Posts

I wonder if it is possible to make a button that create in a predefined path a folder named with a field of database and a subfolder named with another field (ex. fields name and number create .../name/1234/) in OSX.

And this button in case the folder already exists, then open it.

Share this post


Link to post
Share on other sites

Filemaker itself cannot create a folder, but you could use Applescript for this task.

Share this post


Link to post
Share on other sites

Ok, then I think is no possible order from FM to applescript that create a folder with name from fields....

but do you think is posible open it? open path?/field1/field2

Share this post


Link to post
Share on other sites

Ok, then I think is no possible order from FM to applescript that create a folder with name from fields....

Why not? See, for example:

http://fmforums.com/forum/topic/79232-using-applescript-in-fm-pro-10-on-mac-os-x-to-create-a-folder/

Share this post


Link to post
Share on other sites

Finally I open folders with:

Open URL [No dialog; "file:///Volumes/G5HD/Users/Shared/en-curso/"]

and it's OK, but if I try:

Open URL [No dialog; "file:///Volumes/G5HD/Users/Shared/en-curso/" & Proyectos::Cliente & "/"]

don't work, do you know why?

Share this post


Link to post
Share on other sites

Try:

 

$path = "file:///Volumes/G5HD/Users/Shared/en-curso/" & Proyectos::Cliente & "/"

Open URL [No dialog; $path]

Share this post


Link to post
Share on other sites

Thanks, but how I write

"$path = "file:///Volumes/G5HD/Users/Shared/en-curso/" & Proyectos::Cliente & "/""

in the Filemaker Manage Scripts?

Share this post


Link to post
Share on other sites

Thanks John, but don't work... or I'm clumsy

 

I didn't think that create and/or open folder in OSX from FM was so difficult.

 

The initial idea was make a button than open a subfolder with the same name of the field "client" in to the folder "en-curso", if folder don't exist, then create and open. But now I think isn't easy...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.