Jump to content
Server Maintenance This Week. ×

Detecting particular Hardware from FileMaker


fmbug

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

Recommended Posts

Dear All,

I am working with a client. He needs that his all the data should be in a pendrive. And when he insert the pendrive in his machine. It should be detected and all the data should be visible in FileMaker. And After removing the pendrive, it should show no records, means the number of records should be zero(0). After insertion of pendrive, again the records should be visible.

I just want that, is there any way to achieve this task. or is there any way to detect the pendrive with its physical name.

For example: I want a field in my layout as a (Name or something that will be the unque) Calculation field of that particular pendrive.

Looking forward for your positive response as soon as possible.

Link to comment
Share on other sites

That's very descriptive...

What is the data on the pen-drive, which I assume goes elsewhere as thumb-drive or USB-Stick?

Does the data need to be imported? Can it be hidden in the database?

Why doesn't he just copy the FileMaker file onto the drive?

Link to comment
Share on other sites

Posted too quick. Second part.

Yes that can be done on OSX.

You build an application that gets notified when a new drive gets mounted. Checks for the right drive. Imports the data via AppleEvents. Checks every few seconds if the FileMaker Database has changed. If a change is detected, it will be appended to a log-file on the drive which will be merged on import.

That's the rough sketch of what I would do. But first, I would try to talk the customer out of it because I think it's a bad idea. If he insists and pays for it...

Link to comment
Share on other sites

For your task you need FileMaker to become active on external triggers. An application or a plugin are the only choices I know of.

I would write an application for that.

Using Python with PyobjC and appscript is my preference. Apple's AppKit has a notification system (NSNotification) that can be used to detect drives when they are mounted.

appscript is a library for AppleEvents which also exists for Ruby and ObjectiveC and can be used to controll FileMaker for getting the data from the drive or writing it back.

Link to comment
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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