Want to tweak an apps script, but it gives error when try to save - help!

so I have a neat app that when used, will send an image it takes to your email address of choice. It uses "Mail" as the default mail app, but I only use Entourage as my mail app.
Opening the package contents of the app, I found the Applescript that controls this function.. see it below
on sendemail(emailto) --
-- set email_to to "[email protected]" --
-- set email_from to "[email protected]" --
set image_name to "Snapshot.jpg"
set image_path to ((path to home folder) as string) & image_name
set image_file to image_path as alias
tell application "Mail"
activate
set new_message to make new outgoing message with properties {subject:"Here is Your Snapshot"}
tell new_message
-- set visible to true --
-- set sender to email_from --
make new to recipient at end of to recipients with properties {address:email_to}
make new attachment with properties {file name:image_file} at after the last paragraph
-- activate --
end tell
send new_message
end tell
tell application "Finder"
-- delete image_path --
end tell
end send_email
it seems easy enough tweak to me.. see bold text above, but just change the line _tell application "Mail"_ to _tell application "Microsoft Entourage"_ and save the Applescript and viola.. BUT it does not work as once I make that weak & try to save the Applescript I get this error "*Syntax Error Expected “:”, etc. but found property*" and highlights just the word name which is followed by an existing ":". If I change it back to "Mail" it saves just fine... what gives?

I took a different tact that is getting me closer, the Entourage dictionary helped...
set thesubject to "here is your proof!"
set theBody to "here is your visual proof."
set theAttachment_name to "Default.jpg"
set theAttachment_path to ((path to home folder) as string) & theAttachment_name
set theAttachment_file to theAttachment_path as alias
tell application "Microsoft Entourage"
set theRecipients to {{address:{display name:"Contact 1", address:"[email protected]"}, recipient type:to recipient}, {address:{display name:"Contact 2", address:"[email protected]"}, recipient type:cc recipient}}
set theMessage to make new outgoing message with properties {recipient:theRecipients, subject:thesubject, content:theBody, attachment:theAttachment_file}
open theMessage
end tell
tell application "Microsoft Entourage"
send theMessage
end tell
now.. I have the email composed, the attachment is found in proper 'home' folder and correctly placed/attached, subject line set, contact addresses set.. BUT my final issue seems to be just getting the email to send. it creates and composes the email, but is waiting for it to manually be sent as it seems my final "tell" is not sending the email automatically like it should. I have used the Entourage script dictionary, but I am failing to see how to get the script syntax that finishes it off by sending the email automatically.
tell application "Microsoft Entourage"
send theMessage
end tell
this above tell is not working... any ideas?

Similar Messages

  • My computer has all requirments but keep getting error when downloading itunes? help?

    need help downloading itunes. anyone help?

    See the further information area in Troubleshooting issues with iTunes for Windows updates for download advice and direct links if needed.
    tt2

  • Trying to join the Academic Creative Cloud, but receive and error when try to search the school

    In the "Join the Creative Cloud" window, the option to chose the school is not working.
    When enter the school and hit search, appear the message:
    We're sorry. Something seems to be wrong on our end. Please try again later. If this continues to fail, please contact Customer Support.
    This makes unable to start the subscription.

    Are these the links you are using?
    Adobe Education... Start here https://creative.adobe.com/join/edu
    Education Plan https://creative.adobe.com/plans?plan=edu
    One Year Intro Price http://forums.adobe.com/thread/1448933?tstart=0
    http://www.adobe.com/products/creativecloud/students.edu.html
    http://www.adobe.com/education/students/student-eligibility-guide.edu.html
    ID Proof http://www.adobe.com/store/au_edu/academic_id.html

  • Hi i am jad anan a new bee i want TO REVIEW my app id but with no creidit

    hi i am jad anan a new bee i want TO REVIEW my app id but with no creidit card help plz

    Follow the instruction here to create a NEW account w/o a credit card. Follow them carefully.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • I want to download from App Store but when I enter my billing info cause I don't want to put my card on there so I press none and enter my details then press next it don't do anything

    I want to download from App Store but when I enter my billing info cause I don't want to put my card on there so I press none and enter my details then press next it don't do anything

    http://support.apple.com/kb/HT2534

  • I want to develop iphone apps. But I am from Costa Rica, I have seen that there are developers who sell from my country here. I wonder what method of payment used for developer profits, for example Paypal?

    I want to develop iphone apps. But I am from Costa Rica, I have seen that there are developers who sell from my country here. I wonder what method of payment used for developer profits, for example Paypal?
    If so could make money there, and a local bank, has service PayPal.

    Apple does not pay developers via PayPal. All payments are made directly to your bank via electronic funds transfer.
    For more information on Apple's program for distributing your apps, see:
    https://developer.apple.com/appstore/index.html
    Regards.

  • İ have a problem with my itunes accounts.when i want to buy in-app features i got an error

    İ have a problem with my itunes accounts.when i want to buy in-app features i got an error that;
    "Please comtact with itunnes support for completing this process"
    İ checked my device settings and tried my account with another ios device but result not changed.i still get same error.my credit card address info and my account address info same with each other.i tried my other credit cards but i got same error.
    Please check my account details for solving this issue.
    My account details :
    email: [email protected]

    These are user-to-user forums, you are not talking to Apple here.
    You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, the try selecting Purchases, Billing & Redemption

  • TS1646 i have a problem with my itunes accounts. When i want to buy in-app features i got an error that;

    "i have a problem with my itunes accounts. When i want to buy in-app features i got an error that;
    "Please contact with iTunes support for completing this process"
    i checked my device settings and i tried my account with another ios device but result not changed. i still get same error. my credit card address info and my account address info same with each other. i tried my other credit cards but i got same error.
    Please check my account details for solving this issue.

    These are user-to-user forums, you are not talking to Apple here.
    You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, the try selecting Purchases, Billing & Redemption

  • HT5622 Is there any reason why my apple id and password allow log in to App Store but say invalid password when trying to activate Facetime ?

    Is there any reason why my apple id and password allow log in to App Store but say password invalid when trying to activate Facetime - I thought that Id and password were the same for all functions ?

    try the steps in this article:
    http://support.apple.com/kb/TS4268

  • Updated safari to 6.0.2 app starts but can't open any pages...help!

    updated safari to 6.0.2... app starts but can't open any pages...help!

    I tried turning off extensions as you suggested, Bee, but the problem persists. As you can see Chrome is working. Turning on auto proxy discovery in preferences made no difference.
    The message I get when trying to open a web page is:
    Safari can't open the page "http:www.apple.com/support/". The error is: "The operation couldn't be completed. Operation not permitted" (NSPOSIXErrorDomain:1)
    Any chance you can decipher this and tell me what it means other than the web page can't open which I kind of figured out.

  • I can't use Photobooth - when I open the app, I get the message: "Photo Booth couldn't save your photos - Photo Both encountered an error when trying to save your photos. You photos cannot be saved at this time."

    I can't use Photobooth - when I open the app, I get the message: "Photo Booth couldn't save your photos - Photo Both encountered an error when trying to save your photos. You photos cannot be saved at this time."
    i tried adding user macintosh hd/users/your_user/pictures/"photo booth"  but still photo booth is not working and even images in photo booth cant be deleted they keep coming back

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box markedAllow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use  another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • 'Install App for SharePoint' There were errors when validating the App Package

    Hello,
    When testing with an app, I tried to add an
    app event receiver before learning that remote event receiver are not allowed with
    Sharepoint-hosted app. So I reseted the Handle app installed and
    Web Project properties of my project and tried to redeploy and this error occurred :
    'Install App for SharePoint' There were errors when validating the App Package
    Something other than the project's properties have been modified but I don't know what.

    I think the best way to figure real reason out is to look at ULS logs.
    This is example, what I had:
    Unexpected        App Packaging: CreatePackage: Unexpected exception: There were errors when validating the App package: There were errors when validating the App Package. Other warnings / errors associated with this
    exception:  The current version of SharePoint is less than the SharePointMinVersion specified in the app manifest. CurrentVersion='15.0.4693.1000', SharePointMinVersion='16.0.0.0'.

  • Bootcamp - I'm trying to install windows 8 on my MBPr but getting an error when partitioning the disk. 'An error occurred while partitioning the disk'

    I'm trying to install windows 8 on my MBPr but getting an error when partitioning the disk. 'An error occurred while partitioning the disk'

    You posted your Bootcamp question in the Macbook Pro forum. Your question has been asked and answered many times in the Bootcamp forum. https://discussions.apple.com/community/windows_software/boot_camp
    When you post in the Bootcamp forum include the complete and exact error message.

  • Error occurred in deployment step 'Install app for SharePoint': There were errors when validating the App manifest.

    Hi everyone,
    I `m getting error message like this  "Error occurred in deployment step 'Install app for SharePoint': There were errors when validating the App manifest.". when i try to debug the application with "Start Action"="Internet Explorer".This
    application  is  an apps for office application with Oauth with Office 365
    Any help in this regard is greatly appreciated 
    Thanks!!
    Santosh Sutar

    Thanks Fei for your time.
    >>>I would suggest that you create a new project and set it start action with 'Internet Explorer'
    to see whether this issue could be reproduced.  If no, we can compare the difference between the two menifest files.
    As per your suggestion above ,With new project,I can debug with with start action "Internet Explorer" and I
    could not see much difference between the manifest files.
    Please find below my manifest file for the reference .
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
    <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TaskPaneApp">
      <Id>084cd6cd-2908-44d1-a5cf-4fa029aec211</Id>
      <Version>1.0.0.0</Version>
      <ProviderName>[Provider name]</ProviderName>
      <DefaultLocale>en-US</DefaultLocale>
      <DisplayName DefaultValue="Office 365 MVC" />
      <Description DefaultValue="Office 365 MVC"/>
      <AppDomains>
        <AppDomain>https://login.microsoftonline.com</AppDomain>
      </AppDomains>
      <Hosts>
        <Host Name="Document" />
        <Host Name="Workbook" />
      </Hosts>
      <DefaultSettings>
        <SourceLocation DefaultValue="~remoteAppUrl/Home/Index/" />
      </DefaultSettings>
      <Permissions>ReadWriteDocument</Permissions>
    </OfficeApp>
    Please suggest on this.
    Thanks !!
    Santosh Sutar

  • HT1212 iPhone diabled, tried to use iTunes to restore, but iTunes gives error message (0XE8000084). Now what to try to reset iPhone?

    iphone disabled, tried to use iTunes to restore, but iTunes gives error message (0XE8000084). How to restore iPhone?

    Try here   =   http://support.apple.com/kb/TS3221

Maybe you are looking for