Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Exporting & Opening Files In Container Fields - Yet Again

Featured Replies

Here we go again - the old export container fields dance.

 

Trying to open a pdf stored (not referenced) in a Container field. 

 

 I create a variable for the export file path e.g. >

 

$filepath = 

"filemac:" & Get ( DesktopPath ) & GetField ($FieldName) & ¶ & 

 

"filewin:" & Get ( DesktopPath ) &  GetField ($FieldName)
 
Then use the Export Field Contents script step with the 'Automatically Open…" checkbox ticked.
 
This works fine on the Mac.
 
On Windows XP it exports the file correctly but doesn't open it (though no error is generated) - yes Acrobat Reader is installed - and double-clicking the file in Windows Explorer (XP) does open the file.
 
This would appear to be a bug in FMP v12.03.
 
So - tried a number of work-arounds including Open URL and Send Event but can't get either to do the job on Windows.
 
Yes the file path includes spaces and a non alphanumeric char e.g. "C:/Documents and Settings/Administrator/Desktop/Clipboard Explorer v2.54 Manual.pdf"
 
Now there are a number of possible variations on the syntax of this file path - but the right one eludes me for both OPEN URL and Send Event
 
Boy has this wasted some time - any ideas how to get either - or both work-arounds working?
 
 
  • 4 weeks later...

I would try a couple of things - firstly double check that the acrobat opens within the browser, that was a problem i encountered once. I believe there is a tickbox in the Options bit of Reader somewhere.

 

Also I recall having problems with certain versions of Reader, I would backgrade to Reader 9 to see if that solves your problem.

 

Sorry no golden bullet, but hope it helps.

 

Martyn

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.