1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Filemakerでオブジェクトの属性データを取り出す

Posted at

1.はじめに

環境:FileMaker Pro Advanced 14.0.5

オブジェクトの属性一覧はFileMakerサイトに載ってるけど。
http://filemaker-jp.custhelp.com/app/answers/detail/a_id/12951/~/filemaker-%E3%81%AE%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E6%A9%9F%E8%83%BD%E5%BC%B7%E5%8C%96

どのオブジェクトのどの属性がどうゆう内容を返すかすべてやってみた。

GetContainerAttribute ( テーブル名::オブジェクトフィールド; "all" )

2.カメラ-写真

[General]
Filename: 写真 2016-06-22 17.01.19.jpg
Storage Type: Embedded
MD5: FEC65200712FB0D3513FE8E5FAD8126C
File Size: 1773278
Internal Size: 1777374
External Size: 0
External Files: 0

[Image]
Width: 3264
Height: 2448
DPI Width: 72
DPI Height: 72
Transparency: 0 (False)

[Photo]
Orientation: 1 (Normal)
Created: 2016/06/22 17:01:18
Modified:
Latitude:
Longitude:
Make: Apple
Model: iPad Pro

 あれ?Latitudeくん、Longitudeくんどうした!?

3.カメラ-ビデオ

[General]
Filename: ビデオ 2016-06-22 17.02.58.mov
Storage Type: Embedded
MD5: 1733377F83AB60F3C5BF3EC5A155984B
File Size: 4472238
Internal Size: 4472294
External Size: 0
External Files: 0

4.オーディオ

[General]
Filename: オーディオ 2016-06-22 17.03.45.m4a
Storage Type: Embedded
MD5: 8284E45FAE06569E03609054E6295963
File Size: 78374
Internal Size: 78433
External Size: 0
External Files: 0

[Audio]
Title:
Artist:
Album:
Year:
Track:
Genre:
Composer:
Cover Art:
Duration: 0:00:02
Bit Rate: 88 kbps

 その場で録音したデータが登録されます。

5.バーコード

[General]
Filename: SDhnrqCz3k.jpg
Storage Type: Embedded
MD5: 71D80D4FE0DCBB0804B1CBDEABF6AD62
File Size: 74323
Internal Size: 74425
External Size: 0
External Files: 0

[Barcode]
Bar Code Text: SDhnrqCz3k
Bar Code Type: CODE-128

6.署名

[General]
Filename: 署名 2016-06-22 17.05.08.png
Storage Type: Embedded
MD5: AC498B6ED07017576D8FC2B235785660
File Size: 44045
Internal Size: 44147
External Size: 0
External Files: 0

[Signature]
Signed: 2016/06/22 17:05:08

7.写真

[General]
Filename: 写真 2016-06-22 17.05.58.jpg
Storage Type: Embedded
MD5: 83357DE3C71FC15B9B6E0FC7D639D8FD
File Size: 2408802
Internal Size: 2408884
External Size: 0
External Files: 0

[Image]
Width: 3264
Height: 2448
DPI Width: 72
DPI Height: 72
Transparency: 0 (False)

[Photo]
Orientation: 1 (Normal)
Created: 2016/06/22 17:05:53
Modified:
Latitude: **.******
Longitude: ***.******
Make: Apple
Model: iPad Pro

 ローカルに保存してある写真を登録します。
 一応、緯度経度は隠してありますが、きちんと情報入ってました。

8.ファイル

 ファイルの種類によって、前述しているようなメタデータを返します。

9.気になることとか。

 「2.カメラ-写真」で登録したオブジェクトだとLatitudeLongitudeが返ってこない。
  一旦写真をローカルに保存してその写真をオブジェクトフィールドに登録すると、「7.写真」のように位置情報が入る。
  ・・・これだと、例えば写真を撮ってすぐ登録し、その場所の地図を表示させるようなアプリが作れんし。バグ?? 

 もともと、物品に貼られたQRコードを読み取って払い出し、在庫管理するアプリをFileMakerで作っていました。
  その課程で興味をそそられ記事にしてみました。

  こんなふうに属性Bar Code Textを指定すればQRコードを読み取った内容が取得できました。

GetContainerAttribute ( テーブル名::オブジェクトフィールド; "Bar Code Text" )

 バージョン14から(?)ライセンス体系が変わり、導入の費用的なハードルがかなり上がりました。
  FileMaker Server 12も導入していますが、バージョンアップすると年間10万くらいかかるようになるので断念しました。
  https://store.filemaker.com/

  手軽さと安さの両立が最大の魅力だったのに。。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?