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

Help with my applescript

$
0
0

Yes, here’s the new script

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

Viewing all articles
Browse latest Browse all 16267

Trending Articles