Delete Custom Document Property in Word 2011
Delete Custom Document Property in Word 2011
- Subject: Delete Custom Document Property in Word 2011
- From: Dave <email@hidden>
- Date: Thu, 15 Oct 2015 14:53:46 +0100
Hi,
The following Script address a custom document property to a Word Document.
on run
tell application id "com.microsoft.Word"
activate
set myDocument to the document of the front window
set myStandardProperties to the document properties of myDocument
make new custom document property at myDocument with properties {name:” LTWCustom1", value:"Value2", type:"text"}
set myCustomProperties to the custom document properties of myDocument
return "OK"
end tell
end run
I’m now trying to figure out how to delete it, I’ve tried things like:
delete the custom document property of myDocument whose name = “LTWCustom1”
But nothing seems to work, anyone have any suggestions?
Thanks a lot.
All the Best
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