RE: Unable to open Word Mac documents in Hidden state
RE: Unable to open Word Mac documents in Hidden state
- Subject: RE: Unable to open Word Mac documents in Hidden state
- From: "SHIVANK AGGARWAL, Noida" <email@hidden>
- Date: Fri, 22 Jan 2010 13:07:02 +0530
- Acceptlanguage: en-US
- Thread-topic: Unable to open Word Mac documents in Hidden state
That's fine Stan.
But actually I want to do processing on the word documents in hidden state so that the user is not able to see what all is happening in the back.
Setting the collapsed property to true minimizes the document but we cant perform any operations on it once it is collapsed.
Please let me know if you have something on it.
Thanks,
Shivank
-----Original Message-----
From: applescript-users-bounces+shivank.aggarwal=email@hidden [mailto:applescript-users-bounces+shivank.aggarwal=email@hidden] On Behalf Of Stan Cleveland
Sent: Friday, January 22, 2010 12:36 PM
To: AppleScript
Subject: Re: Unable to open Word Mac documents in Hidden state
On 1/21/10 10:30 PM, "SHIVANK AGGARWAL, Noida" wrote:
> I am unable to open a word Mac 2004/2008 document in hidden state as we can do
> by setting Visible = False in Windows VB.
>
> Is there any property which can make a word document invisible.
Hi Shivank,
The 'visible' property exists in Word's AppleScript dictionary, but it
appears to be non-functional. If you set 'visible' to false, nothing
changes. Aand after that, if you request the value of 'visible', it is still
set to true.
tell application "Microsoft Word"
set visible of window 1 of document 1 to false
visible of window 1 of document 1 --> true
end tell
An alternative would be to minimize the window into the dock. The following
code actually works.
tell application "Microsoft Word"
set collapsed of window 1 of document 1 to true
collapsed of window 1 of document 1 -- true
end tell
I'm using Word 2008, BTW.
HTH,
Stan C.
_______________________________________________
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
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
_______________________________________________
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