Jump to content
The site is updated on a beta version. Maintenance tasks are running so search and index may not function at this time. ×

This topic is 470 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have always developed with FileMaker for windows. I have bought myself a MacBook Air and love it. So now I am using FileMaker 16 Pro advance for MAC. I know that MAC does not label their directories like windows does. So I am having problems figuring out to get the right coding to access my photos. I have a folder called "Photos" that reside on the C: drive in windows. Then I reference that folder so pictures will populate automatically when I put in a record. Here is what I have on the windows fileMaker:

ImagePath:

Let 
(
[

// Transform the contents of a container field named Images to text
ImageRef = GetAsText ( ImagePath); Photos = Position ( ImageRef; "/"; 1;
PatternCount (  ImageRef; "/"))
];

Middle ( ImageRef; Photos + 1;
Length ( ImageRef ) - Photos )
)

images:

"imagewin:/C:/Photos/" & Film::title & ".jpg"

Then I go into Import folder and point to the folder all the photos are in. The problem I have now is how to point to that folder in "imagewin", is their an alternative called imagemac, then I could put in Macintosh HD/Users/patricks/Documents.  The folder is in the Document folder, called Photos. Thank you for any help.

Link to post
Share on other sites
  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

I don't really understand your question. If you have a folder named Photos in your Documents folder, then the path to it can be calculated using the Get (DocumentsPath) function.

For example, if the title of your image is stored in the Film::title field, then the path to the image could be calculated as =

"imagemac:" & Get (DocumentsPath) & "Photos/" &  Film::title & ".jpg"
Edited by comment
Link to post
Share on other sites
  • 1 month later...

I am sorry that it took so long to answer. I had thought I sent a thank you, but does not look like it, sorry. I am still not getting the this to work. Should I be changing something in the ImagePath calculation? I have the Photo folder in the document directory. Thank you. 

Link to post
Share on other sites

I am afraid I still don't understand what you're asking. Do you have a field that contains the image's file name? When you import a folder, you get the option to map the file name into a text field - so you shouldn't have to extract it from the container field. 

If you do extract it, then AFAICS your method will extract the file name including the extension - so you shouldn't be appending the ".jpg" part at the end. 

You should test the results you get at every step and see if they make sense. Also try my suggestion with a known file name.

---
Note that the ImagePath calculation you posted references a container (?) field named ImagePath; that too is confusing.

Link to post
Share on other sites

For this kind of cross-platform problems I always use global variables setting script to change the paths with platform change which I think is easier rather than using complex calculations , set default globals with respective device id script and enjoy fm flow :) , since 9 yrs i never used global variables when i understood what are they my solution took Uturn IN UX/UI DESIGN hope u got my point try to use globals for ur paths :)

Edited by Dr.Gopala krishnam raju AMBATI
Link to post
Share on other sites
  • 1 month later...

Instead of enter the path in the auto-enter calculation of the container, it needs to go in the Options > Storage (look to the bottom of that Storage tab). 

I think I misinterpreted your question.  Sorry. And no way to delete my own post. 😱

Edited by LaRetta
Link to post
Share on other sites

If you define the field as auto-entered calculation, it will not update when you open the file on another computer. It needs to be an unstored calculation field. 

 

40 minutes ago, LaRetta said:

Options > Storage (look to the bottom of that Storage tab). 

That's an interesting alternative. But then I think the container field must store the image name and extension?

Link to post
Share on other sites

Still not sure why it is not working. I can get it to work on Windows 10. But I am trying to stay with my MAC, since I really like it. So I should not be putting the 

"imagemac:" & Get (DocumentsPath) & "Photos/" &  Film::title & ".jpg"

in the Auto enter calculation? So how do I run it? I have 715 pictures right now so I would really like to be able to get them to auto fill. I already have the database built with all the information of each film, just need the container to fill the image that is related to that particular movie. The posters are stored in a directory called "Photos" in the Documents folder. Each movie poster is titled with a .jpg extension. Thank you. 

Link to post
Share on other sites

This topic is 470 days old. Please don't post here. Open a new topic instead.

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.

  • Similar Content

    • By charlitoA
      Hey Everyone
       
      We are having this issue with the change of any of this variables
      IOS 13
      FileMaker 18
      FileMaker Server 18
      FileMaker Go 18
       
      We have a Layout for FileMaker go to upload photos from an iPod Touch or iPhone Pro 11, and when we use a script to take the photo directly from the camera works perfectly, but when we use the another one that has to open the library from the device it will happen either of this 2 things
       
      1. It will duplicate on the mini preview the last "good" picture and when try to maximize the picture nothing shows up
      2. It will happen this weird "no signal tv" ( that's how I call this lol ) image and there's no way to see the picture
       
      Discoverys
      On MacOS the pictures looks great, also con iOS , it seems that windows it's not detecting as a valid file when the photo is taken from the library of the iPhone or the iPod Touch (this never happen in older versions of filemaker or iOS)
       
      Any ideas ?

    • By Teilo
      So, the time has come. Runtime support is gone in 19.
      This puts me in a quandary. At my company, I have a handful of small apps that do nothing but import CSVs and print labels with barcodes on Zebra label printers, or packing slips with pictures for each item. These are one-off special purpose databases. There is no active data management. The scripts clear out the DB and import a fresh CSV on each run.
      I have tried making these applications work with Server, to no avail. I doubt anything has changed in 19.
      I can understand Claris wanting to move to an online subscription-based model, but the problem is that the server version is not at feature parity with the desktop client for certain essential things I need, like printing to a label printer, or exporting PDFs with images that come from a folder full of PNG files that change on each run.
      I have some time, obviously, but version 18 will not run forever, especially if Apple's shenanigans continue. Is Claris listening, or should I just assume that this is a lost cause?
    • By Dimitrios Fkiaras
      Hello,
      I have a simple leaflet.js map which is working completely offline. All the references in the HTML5 code are absolute and refer to local files.(javascript, css, tiles).
      I noticed - and was really surprised - that I was able to copy the HTML5 code into a global field and run it a web viewer (FM 18, Windows 10, Chrome browser).
      (Up to now, I thought that all external references should be included in an HTML calculation.)
       
      When I tested the same file on my Mac (and changed of course all the paths to the new paths on the mac) I couldn't get it to work. It seems that MacOS isn't able to do so.
      (Mac OS 10.14 Mojave, Safari). Is this true?
       
      any help is much appreciated,
      Dimitris
    • By 360Works
      NEW 360Works FileMaker Plug-in Update!
       
       
      Update available for the entire 360Works plug-in platform providing improvements for both macOS Catalina and Windows
      360Works plug-ins and products improve the capabilities of FileMaker by adding functionality to the FileMaker platform for sync, email management, web services, payment processing, image and file storage, FTP transfers, Apple/Google/Exchange calendar integration, Microsoft Office document manipulation, and much more.

      The team at 360Works strives to provide the best possible service and support to their customers and to always keep their products compatible and flexible.
      We have released new versions of the plug-ins within our product suite with improvements for use on both Mac and Windows operating systems:
      New signed versions of our plug-ins will prevent macOS Catalina from trying to block it. Plug-ins are now notarized to comply with macOS changes in this update. For Windows users, we implemented better handling of child processes. If there is a hard crash, we detect and clean up java processes left running the next time the plug-in starts up. We improved our plug-in logging which will prevent hangups on background logging threads. For registering our plug-ins, we fixed issues with the registration dialog where the registration would not persist.  
        Updated Versions of 360Works Plug-ins:
      Updated Plug-in Plug-in Description 360Deploy 2.8 Automated, simple deployment of new database versions CloudMail 3.3 Send and track email marketing campaigns Plastic 3.2 Payment processing plug-in Scribe 3.2 Read and write PDF, Word, and Excel files ScriptMaster 5.3 Add many new functions & create custom plug-ins Email 3.3 Send and receive text and HTML emails in FileMaker FTPeek 2.3 FTP upload and download from your FileMaker database WebAssistant 2.2 Access internet resources, URLs, and fill out web forms JDBC 2.2 SQL access with JDBC Compatibility Charts 2.2 Easy-to-use charting for FileMaker RemoteScripter 2.2 Trigger scripts on FileMaker Pro from the web or IWP SuperContainer 2.9514 A better container field for FileMaker Go and FileMaker Pro Installing the Update

      Using the plug-in links above you can download the current updated version of the plug-in. Installing plug-in updates are easiest when using the Install Plugin File script step in all environments. For legacy systems, auto-update is supported as well. Find out more at 360works.com/autoupdate.
      Availability

      This is a free plug-in update if you own a valid license for the most recent major version, or are within your maintenance subscription for the license (maintenance applies to Scribe and CloudMail).

      Active 360Works Portfolio Bundle holders with a current maintenance subscription can use all of the updates at no additional charge. The PDF Plug-in and Scribbler Plug-in, available only in the 360Works Portfolio Bundle, have the same platform update as well!

      Please note: if you do not own the current major version or are outside of your maintenance window you will need to purchase the current major version of the license in order to use this update.
      Custom Plug-in Users
      If you have a 360Works custom plug-in, please contact us to get an updated version of our custom plug-in. In most cases, there will be no additional charge for this. (Charges may occur if additional development work is required. Rates will be billed at our hourly consulting rate of $185/hr. Please contact us for custom plug-in information.)
      360Works Support
      The 360Works Support Team is dedicated to your successful use of 360Works plug-ins and add-ons. With your purchase from 360Works, you receive 2 free hours of technical support Monday - Friday from 10:00 a.m. - 6:00 p.m. (ET). However, most questions can be answered at our documentation page. If you need to get in touch with us, requests for support team assistance can be sent to support@360works.com.
      Stay updated with 360Works
       
       
    • By Monarch
      Hi everyone!
      I have a text field, with each sentence separated by ¶ .
      I would like to create buttons for each line in this field, so that I can copy each line individually (and paste manually in different application for example)
      I assume that it's easy to do in calculation with GetValue, and make a script using Get (ScriptParameter) = line number in that field, for each button. ( I ll need only 7-10 lines max).
      1. I can't figure out what script function I need to use to make a selective copy...
      2. If one of the option is Set Selection function - how would it work in my case?
      Thank you!
  • Who Viewed the Topic

    7 members have viewed this topic:
    Ocean West  Job Prijt  Ian Bate  bcooney  comment  Sky Willmott  Wim Decorte 

×
×
  • Create New...

Important Information

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