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

Help with my applescript

$
0
0

I use the apply script in smart rules, and it runs the script, but none of the custom meta data get changed. I read many resources, and come up with an updated one. The script runs, but still, none of the custom metadata changed.

on performSmartRule(theRecords)
	tell application id "DNtp"
		repeat with theRecord in records
			set recordnam to name of theRecord
			if recordnam contains "华北理工大学" then
				get custom meta data for "地理"
				add custom meta data "华北理工大学" for "地理" to thisRecord
			else if recordnam contains "南京工业大学" then
				get custom meta data for "地理"
				add custom meta data "南京工业大学" for "地理" to thisRecord
			else if recordnam contains "南京师范大学" then
				get custom meta data for "地理"
				add custom meta data "南京师范大学" for "地理" to thisRecord
			end if
		end repeat
	end tell
end performSmartRule

Viewing all articles
Browse latest Browse all 16117

Trending Articles