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
In reply to Win32::OLE (Outlook) as a windows service by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |