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.

Importing a file downloaded by a web viewer

Featured Replies

  • Newbies

Hello,

I want to import a CSV file downloaded by a Web Viewer in a script. How can I determinate the file path and the file name? This will be a multi-user solution with Mac clients.

I believe current versions of Safari send downloads to 'Downloads' folder, but users can change this in Safari. You may prefer to use 360Works ScriptMaster plugin to download the file, as this will allow you to control where it is stored. This way, it could go to temporary folder, and after importing it, you could delete it. As for the filename (without path), that can be parsed out of the HTML.

  • Author
  • Newbies

The solution, it took me a week to solve: :)-)

The web viewer use the com.apple.internetconfig.plist preference to determinate the download folder, this is an obsolete method, Apple removed the Internet preference pane in Mac OS 10.3. (http://help.filemaker.com/app/answers/detail/a_id/6162/~/filemaker-pro-or-advanced-8.5-crashes-when-viewing-a-web-viewer-object)

Now I can use this AppleScript to parse out the path:

set kimenet to (do shell script "/usr/libexec/PlistBuddy -c "Print :Version 2.5.4:ic-added:DownloadFolder:ic-data" ~/Library/Preferences/com.apple.internetconfig.plist") as text

set kim1 to (offset of ":U" in kimenet) + 1

set kim2 to (offset of "" in kimenet) - 2

set kim3 to text kim1 thru kim2 of kimenet

Why not use AppleScript to download the file directly, using cUrl?

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.