4d-plugin-notes

Interact with the Notes app on macOS

View the Project on GitHub miyako/4d-plugin-notes

ランゲージ

リスト

accounts:=Notes GET ACCOUNTS
Parameter Type Description
accounts COLLECTION collection of account

メモに登録されているアカウントの情報をコレクション型で返します。

[
	{
		"name": "Exchange",
		"id": "x-coredata://D219C617-A827-4FFA-B8F1-1ADC065277D6/EWSAccount/p2",
		"folders": [
			"x-coredata://D219C617-A827-4FFA-B8F1-1ADC065277D6/EWSFolder/p4"
		]
	},
	{
		"name": "iCloud",
		"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICAccount/p11",
		"folders": [
			"x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICFolder/p12",
			"x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICFolder/p10"
		]
	}
]

Properties of account:

Parameter Type Description
name TEXT  
id TEXT x-coredata
folders COLLECTION collection of folder (non-recursive)
folders:=Notes GET FOLDERS

メモに登録されているフォルダーの情報をコレクション型で返します。

Parameter Type Description
folders COLLECTION collection of folder

[
	{
		"name": "Notes",
		"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICFolder/p12",
		"notes": [],
		"folders": []
	},
	{
		"name": "Recently Deleted",
		"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICFolder/p10",
		"notes": [
			"x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p22",
			"x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p21",
			"x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p15"
		],
		"folders": []
	},
	{
		"name": "メモ",
		"id": "x-coredata://D219C617-A827-4FFA-B8F1-1ADC065277D6/EWSFolder/p4",
		"notes": [],
		"folders": []
	}
]

Properties of folder:

Parameter Type Description
name TEXT  
id TEXT x-coredata
notes COLLECTION collection of x-coredata
folders COLLECTION collection of x-coredata
notes:=Notes GET NOTES

メモに登録されているメモの情報をコレクション型で返します。

Parameter Type Description
notes COLLECTION collection of note

[
	{
		"name": "あああ",
		"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p22",
		"attachments": []
	},
	{
		"name": "いいい",
		"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p21",
		"attachments": []
	},
	{
		"name": "ううう",
		"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p15",
		"attachments": []
	}
]

Properties of note:

Parameter Type Description
name TEXT  
id TEXT x-coredata
attachments COLLECTION collection of x-coredata
attachments:=Notes GET ATTACHMENTS

メモに登録されている添付ファイルの情報をコレクション型で返します。

Parameter Type Description
attachments COLLECTION collection of attachment
[
	{
		"name": "image.png",
		"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICAttachment/p23",
		"note": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p15"
	}
]

Properties of attachment:

Parameter Type Description
name TEXT  
id TEXT x-coredata
note COLLECTION collection of x-coredata

オブジェクト取得

account:=Notes Get account (id)

メモに登録されているアカウントの情報をオブジェクト型で返します。

Parameter Type Description
id TEXT x-coredata
account OBJECT  

{
	"id": "x-coredata://D219C617-A827-4FFA-B8F1-1ADC065277D6/EWSAccount/p2",
	"name": "Exchange",
	"folders": [
		{
			"name": "メモ",
			"id": "x-coredata://D219C617-A827-4FFA-B8F1-1ADC065277D6/EWSFolder/p4",
			"folders": []
		}
	]
}

Properties of account:

Parameter Type Description
name TEXT  
id TEXT  
folders COLLECTION collection of folder (recursive)
folder:=Notes Get folder (id)

メモに登録されているフォルダーの情報をオブジェクト型で返します。

Parameter Type Description
id TEXT  
folder OBJECT  

{
	"id": "x-coredata://D219C617-A827-4FFA-B8F1-1ADC065277D6/EWSFolder/p4",
	"name": "メモ",
	"folders": [],
	"notes": []
}

Properties of folder:

Parameter Type Description
id TEXT  
name TEXT  
folders COLLETION collection of folder (recursive)
notes COLLETION collection of note (top level only)
note:=Notes Get note (id)

メモに登録されているメモの情報をオブジェクト型で返します。

Parameter Type Description
id TEXT  
note OBJECT  

{
	"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p15",
	"folder": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICFolder/p10",
	"name": "ううう",
	"body": "<div>ううう</div>\n",
	"creationDate": "2019-08-07T10:42:31Z",
	"modificationDate": "2019-08-07T19:50:27Z",
	"creationLocalDate": "2019-08-07T19:42:31",
	"modificationLocalDate": "2019-08-08T04:50:27",
	"attachments": []
}

Properties of note:

Parameter Type Description
id TEXT x-coredata
folder TEXT x-coredata
name TEXT  
body TEXT  
creationDate TEXT  
modificationDate TEXT  
creationLocalDate TEXT  
modificationLocalDate TEXT  
attachments COLLECTION collection of x-coredata
path:=Notes Get attachment (id)

メモに登録されている添付ファイルの情報をオブジェクト型で返します。

Parameter Type Description
id TEXT  
attachment OBJECT  

{
	"id": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICAttachment/p23",
	"contents": "Macintosh HD:Users:miyako:Library:Group Containers:group.com.apple.notes:Accounts:F67EF39F-73DE-4FB8-840C-6034A72B5272:Media:C955A294-CA7D-43BC-8C88-92033CFF1702:1_B8A3CD7C-9BA6-4322-A17E-C5AF8E90F3B7:410.png",
	"note": "x-coredata://5E8616AB-4594-4644-8F88-CE7880A4E33D/ICNote/p22",
	"creationDate": "2024-05-01T04:56:52Z",
	"modificationDate": "2024-05-01T04:56:52Z",
	"creationLocalDate": "2024-05-01T13:56:52",
	"modificationLocalDate": "2024-05-01T13:56:52",
	"contentIdentifier": "cid:6ADF0ACD-9233-4072-8549-AE958FD76D4A@icloud.apple.com",
	"name": "410.png"
}

Properties of attachment:

Parameter Type Description
id TEXT x-coredata
note TEXT x-coredata
contents TEXT ファイルパス
name TEXT  
creationDate TEXT  
modificationDate TEXT  
creationLocalDate TEXT  
modificationLocalDate TEXT  
contentIdentifier TEXT  

オブジェクト作成

folder:=Notes Create folder (parent;name)

オブジェクト型からフォルダーを作成します。

Parameter Type Description
parent TEXT x-coredata
name TEXT フォルダー名
folder OBJECT folder

{
	"id": "x-coredata://D219C617-A827-4FFA-B8F1-1ADC065277D6/EWSFolder/p16",
	"name": "title4"
}

Properties of folder:

Parameter Type Description
id TEXT x-coredata
name TEXT フォルダー名
note:=Notes Create note (folder;title;body;attachments{;$names})

オブジェクト型からメモを作成します。

Parameter Type Description
folder TEXT x-coredata
title TEXT  
body TEXT  
attachments ARRAY PICTURE or ARRAY BLOB 添付ファイル
names ARRAY TEXT 添付ファイル名
note OBJECT note

{
	"id": "x-coredata://D219C617-A827-4FFA-B8F1-1ADC065277D6/EWSNote/p4",
	"name": "title",
	"body": "body",
	"creationDate": "2024-05-01T06:05:55Z",
	"modificationDate": "2024-05-01T06:05:55Z",
	"creationLocalDate": "2024-05-01T15:05:55",
	"modificationLocalDate": "2024-05-01T15:05:55"
}

Properties of note:

Parameter Type Description
id TEXT x-coredata
name TEXT  
body TEXT  
creationDate TEXT  
modificationDate TEXT  
creationLocalDate TEXT  
modificationLocalDate TEXT  

ユーティリティ

Notes SHOW (note)

メモを起動してメモを表示します。

Parameter Type Description
note TEXT x-coredataまたは本文の一部(標準テキスト)