Deleting a Custom Property in Word 2011
Deleting a Custom Property in Word 2011
- Subject: Deleting a Custom Property in Word 2011
- From: Dave <email@hidden>
- Date: Mon, 14 Mar 2016 17:38:53 +0000
Hi All,
Does anyone have any idea of how to delete a Custom Document Property in Word 2011?
i’ve tried this but just get an error:
on deletewWordCustomDocumentPropertyWithDocumentID:(theDocumentID as string) andPropertyName:(thePropertyName as string)
--say "deletewWordCustomDocumentPropertyWithDocumentID:"
set myDocument to my getWordDocumentWithDocumentID:theDocumentID
tell application id "com.microsoft.Word"
set myCustomPropertyList to the (custom document properties of myDocument whose name is thePropertyName)
if (count of myCustomPropertyList) = 0 then
return
end if
delete the (custom document properties of myDocument whose name is thePropertyName)
end tell
end deletewWordCustomDocumentPropertyWithDocumentID:andPropertyName:
Thanks a lot,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden