Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:
I have had some success running an application just not my application. It seems that the culprit is Win32::OLE and Outlook.
use strict; use warnings; use Win32::OLE; use Win32::OLE::Const 'Microsoft Outlook'; my $outlook = Win32::OLE->new('Outlook.Application') or die Win32::OLE +->LastError; my $namespace = $outlook->GetNamespace("MAPI"); my $folder = $namespace->GetDefaultFolder(olFolderInbox) or die Win32 +::OLE->LastError; # <--- dead my $items = $folder->Items; print STDERR "Folder: ", $folder->Name, "\n"; print STDERR "Total entries: ",$items->Count, "\n"; __DATA__ The error message is something about "METHOD/PROPERTYGET getdefaultfol +der"
I haven't yet tried ActiveState's PerlSvc (part of their PDK) but I have put in a call to the sales department. I am at a complete loss and am hoping some wise monk knows what I am missing. If anyone can get the script above to work on AS 5.10 on Vista as a service (using any tool at all), I would be very appreciative.
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE (Outlook) as a windows service
by NetWallah (Canon) on Oct 16, 2008 at 04:02 UTC | |
|
Re: Win32::OLE (Outlook) as a windows service
by pKai (Priest) on Oct 16, 2008 at 09:27 UTC | |
|
Re: Win32::OLE (Outlook) as a windows service
by roboticus (Chancellor) on Oct 17, 2008 at 13:33 UTC | |
by Limbic~Region (Chancellor) on Oct 17, 2008 at 14:32 UTC | |
by roboticus (Chancellor) on Oct 17, 2008 at 14:59 UTC | |
by Limbic~Region (Chancellor) on Oct 17, 2008 at 15:36 UTC |