How can I get the name of an outlook account in microsoft outlook using applescript
I've tried
tell application "Microsoft Outlook"
set name to name of (get account)
--Creates HTML signature using html code
make new signature with properties {name:"Official Signature",
content:html_content}
end tell
but it errors out as Can't get name of account. The account is a class and name is a property
For anyone who might find this useful:
tell application "Microsoft Outlook"
set theAccount to the full name of the first exchange account
--adapted from above comment account says it is an integer
get the full name of every exchange account
end tell
Related
I have written an AppleScript that transfers mail from a specific folder "src" X in Gmail account A to a specific folder "dst" in Gmail account B. None of these folders are any of the default labels/folders in Gmail.
This is my code:
tell application "Mail"
set srcAcct to account "A"
set dstAcct to account "B"
set srcMbx to mailbox "src" of srcAcct
set dstMbx to mailbox "dst" of dstAcct
set msgToMove to first message of srcMbx
end tell
But when I execute this, this line is logged for the set msgToMove to first message of srcMbx statement:
get message 1 of mailbox "src" of account id "B96A634B-39C9-4DF4-AA9E-FA30A81AC6F8"
--> message id 1 of mailbox "[Gmail]/All Mail" of account id "B96A634B-39C9-4DF4-AA9E-FA30A81AC6F8"
Note that it mentions All Mail instead of src.
All other log entries makes sense, e.g.,
get account "A"
--> account id "B96A634B-39C9-4DF4-AA9E-FA30A81AC6F8"
get mailbox "src" of account id "B96A634B-39C9-4DF4-AA9E-FA30A81AC6F8"
--> mailbox "src" of account id "B96A634B-39C9-4DF4-AA9E-FA30A81AC6F8"
for these two lines of code
set srcAcct to account "A"
set srcMbx to mailbox "src" of srcAcct
Is this some Gmail quirk than I can ignore? Or is it a problem? In that case, how do I make my script only apply to the src-mailbox? I am a little worried that my script suddenly starts manipulating the All Mail pseudo-label in Gmail, instead of src.
When i try to add identifier i'm getting error : An attribute in the provided entity has invalid value An App ID with Identifier 'com....' is not available. Please enter a different string.
i need to publish application with this id, xcode already created profile automatically from this id, for my account, how can i delete this profile so i can i create it again on provising profile here : https://developer.apple.com/account/resources/identifiers/bundleId/add/bundle so i can create app on appstore https://appstoreconnect.apple.com/
The problem i think is that I have two personnel teams : MY4F4VTXXX (The application id is registered with this team but I don’t have access, it’s a old team) BR7TE9ZXXX (I want register id to be registered here but I can’t it tell me it’s already registered)
Any help would be appreciad
I'm looking for a way to take an existing email profile i.e. default "Outlook" and programmatically (preferably via Powershell) add another email account to the profile, so the end-user gets an additional email account. It should run one-time and if the 2nd profile with specific string exists - would skip and complete.
I don't know if it's possible, to the email should be comprised of firstname.lastname#domain.com - is it possible to use User Display name for the firstname.lastname part of the email?
I am coding a MVC 5 internet application in VS2013 Ultimate Update 3
I am referring to the following resource for this question: http://www.asp.net/mvc/tutorials/mvc-5/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on
I have navigated to the Google Developers Console.
I have created a new client ID with the correct Authorized JavaScript and correct Authorized redirect URI
I have entered in the client ID and client secret into the ConfigureAuth() public method in theStartup.Auth file
When clicking on the "Log in using your Google Account" button, I am getting the following error:
401. That’s an error.
Error: invalid_client
no application name
Can I please have some help with this?
This error is because you haven't inserted "PRODUCT NAME" in Consent Screen inside Google Developer Console.
So, log in into Google Developer Console and in Consent Screen,
go to "APIs & auth" > "Consent screen" and enter a "PRODUCT NAME".
Note: Be sure that e-mail address is also provided.
I have an application in VB6 using Lotus Notes so send emails to various recipients.
This is a heavy applications that sends daily reports and since it's a rather heavy task, there is a dedicated machine running it.
It has a win user logged in and the Lotus session that is being used, is the one related to the WIN user. Email messages are sent by the user who has a Lotus/Win session.
Now, this user has access to a shared Mailbox in Lotus. I want the email to be sent from this new shared Mailbox. I can do it manualy, and I noticed that the message is sent from the main email of this shared mailbox but is adds below it the fiedl "sent from UserX".
This is the situation that I want to automate.
I've this (VB6) code:
'Start a session to notes
Set Session = CreateObject("Notes.NotesSession")
'Get the sessions username and then calculate the mail file name
UserName = Session.UserName
MailDbName = Left(UserName, 1) & Right(UserName, (Len(UserName) - InStr(1, UserName, " "))) & ".nsf"
'Open the mail database in notes
Set Maildb = Session.GETDATABASE("", MailDbName)
I think I need to change this last line where I choose the MailDbName.
Can anyone give me some guideance, please?
Thank you.
The MailDbName is a string that contains the path and filename of the mail database within the server, for example "mail/user.nsf". In this case, the server is local, since the first parameter of the GETDATABASE method is passing an empty string. You can replace that with a server name if the database is on the server.
If you open the shared mail database and look at File > Database > Properties you can see the server and file path information and use that in this method call.
However, if the email is sent programmatically, you may need to check out this tip on how to make the "From" appear as someone different.