Quantcast
Channel: DEVONtechnologies Community - Latest posts
Viewing all articles
Browse latest Browse all 16117

How to let custom meta data (boolean) change if certain tag exists (w Applescript)

$
0
0

Hi,

I was trying to have custom meta data (boolean) changed if a certain tag exists. I tried to adjust an applescript and managed to have the boolean item changed to true. But it always changes to true, no matter if the specified tag exists.

Can anyone help?

In the script below the variable “xxx” is for the tag. The variable “yyy” is for the custom meta data (boolean).

tell application id "DNtp"
	set theRecords to selected records
	if theRecords = {} then error "Please select some records"
	repeat with thisRecord in theRecords
		set theTag to "xxx"
		set md to true
		if exists theTag then
			add custom meta data (md as boolean) for "yyy" to thisRecord
		end if
	end repeat
end tell

Thank you!


Viewing all articles
Browse latest Browse all 16117

Trending Articles