Need help with a email plugin I trying to create

I modifed some sample code here problem I am having is figuring out how to get the image filename so I can create a loop code to create a comma delimited string of images to be sent to the external program.
local LrDate = import 'LrDate'
local LrFileUtils = import 'LrFileUtils'
local LrPathUtils = import 'LrPathUtils'
local LrTasks = import 'LrTasks'
local LrDialogs = import 'LrDialogs'
local LrView = import 'LrView'
ExportToEmailTask = {}
function ExportToEmailTask.processRenderedPhotos(functionContext, exportContext)
    local sysTempPath = LrPathUtils.getStandardFilePath('temp')
    local tempPath = nil
    repeat
        local now = LrDate.currentTime()
        tempPath = LrPathUtils.child(sysTempPath, LrDate.timeToUserFormat(now, 'exporttoemail-%Y%m%d-%H%M%S'))
        if LrFileUtils.exists(tempPath) then
            tempPath = nil
        else
            LrFileUtils.createAllDirectories(tempPath)
        end
    until tempPath
    local exportSession = exportContext.exportSession
    local nPhotos = exportSession:countRenditions()
    local progressScope = exportContext:configureProgress {
            title = nPhotos > 1
                        and LOC ("$$$/ExportToEmail/Progress=Preparing ^1 photos to e-mailed", nPhotos)
                        or LOC ("$$$/ExportToEmail/Progress/One=Preparing one photo to be e-mailed"),
     files = {}
    for i, rendition in exportContext:renditions() do
        local success, pathOrMessage = rendition:waitForRender()
        if progressScope:isCanceled() then break end
        if success then
            local copyPath = LrPathUtils.child(tempPath, LrPathUtils.leafName(pathOrMessage))
            LrFileUtils.copy(pathOrMessage, copyPath)
            local exrendition = exportRendition.photo
            table.insert(files, copyPath)
            --LrDialogs.message ("test",exportRendition.photo)
        else
            error(pathOrMessage)
        end
    end
--reveals main path that exported files are created.
    LrDialogs.message(tempPath)
    smtpprog = ('"' .. LrPathUtils.child(LrPathUtils.child( _PLUGIN.path, "bin"), "smtpmail.exe".. '" '))
--Test Code works I get email
    -- if LrTasks.execute (smtpprog.." -server mail.somewhere.com  -f [email protected] -to [email protected] -u [email protected] -pw 1234 -subject you_images -body LR export test -debug -log check.txt")~= 0 then
                --LrDialogs.message("Failed to run Application")
                --end
end
return {
    hideSections = { 'exportLocation', 'postProcessing' },
    hidePrintResolution = true,
    processRenderedPhotos = ExportToEmailTask.processRenderedPhotos,
I new at Plugin design so any help will be appreciated.

Your question is more likely to be answered on the Lightroom SDK forum http://forums.adobe.com/community/lightroom/lightroom_sdk?view=discussions

Similar Messages

  • Need help with almost completed plugin engine project

    Hi all,
    For a while now I have been working on a plugin engine. After a few iterations, the engine is similar to the Eclipse engine, in that plugins use extension points and extensions to allow contributions. Unlike the eclipse engine I have added the ability for plugins to fire events through the engine and other plugins can add listeners, all through the plugin.xml manifest. Dependencies are mostly handled automatically at plugin load time (when extensions get resolved to extension points, and listeners get resolved to events). For the case where a plugin needs to use classes from another plugin, dependencies are also allowed to be declared. Like the eclipse engine, activation of plugins occurs the first time a class is used within the plugin's classpath, OR a plugin can be activated after it is loaded.
    What I need help with is testing, working on examples to provide with the engine project, and feedback/suggestions before we release the M1 build. I am asking for those that are interested in this type of work to volunteer to help where applicable and possible. I want to provide a solid plugin engine to the java community, one that is easy to use, works well, and is pretty effecient in terms of resource usage and performance.
    Of particular interest to me right at the moment is dealing with multiple versions. As I see it, the engine will be used within an application and as such plugins would be distributed with a specific application version. The plugin version itself is more of a notification as to what version a plugin is, although I imagine it will help when updating at runtime as well.
    Just a few other details of the engine. It handles (or will soon) dynamic load, unload and reload of plugins at runtime. Plugins can be distributed in an archive file format, we call .par (Plugin ARchive), with additional plugin filename extensions configurable at runtime. The plugins can be developed and deployed in an expanded directory format as they are in Eclipse as well, or in the archive format. In the archive format they do not need to be unzipped when deployed, and they can contain embeded jar/zip libraries. The engine handles finding and creating classes directly out of the .par file at runtime.
    Multiple locations to find plugins are configurable before the engine starts, and even after it starts more could be added to allow additional locations to find plugins. URLs are supported, and soon the HTTP protocol will be supported so that plugins can be downloaded and installed at runtime.
    The project can be found at www.sourceforge.net/projects/genpluginengine. If you would like to get involved and help out, please sign up on the dev mail list and send an email to introduce yourself to the rest of the members on the list.
    I'll also add that I am working on a Swing UI Framework built entirely from plugins. It provides a ready-to-launce UI application that developers can simply add their plugins to, extending various extension points of the framework to have menu items, toolbar buttons, status bar access, help and preferences dialog additions, file i/o choosers, tons of open-source components ready to use (or extend to add on to), and like Eclipse, hopefully... draggable window frames that can be dropped on any other frame to form a tabbed frame of windows. Some of this is a ways off, some is getting there now. Presently you can add menu items that do allow plugin activation when first clicked, so plugins can be loaded but not activated until needed. The Preference dialog works but is not completed, and a plugin that adds a plugin control panel to view all loaded plugins, activate them, load/unload/reload, view extension points, extensions, dependencies, etc is partially completed. The point is, to allow a ready to run UI framework in Swing with an easy path for developers to quickly build applications with. If you are interested in this, when you join the mail list and introduce yourself, indicate that you are interested in this as well, as we need help with plugin development for it and would appreciate more help here too.
    Look forward to some replies.

    Might I suggest setting up a project at a known project-site? I've seen your progress and questions posted here from time to time, but one of the drawbacks is that you have to fill each post with the entirity of your vision to explain what you're doing. That's a lot of text to read - and most folks will skip right over it.
    On the other hand, a well-crafted, good-looking project web-site, with appropriate links and docs and vision statements, diagrams, etc. will have more likelyhood of attracting volunteers. java.net and sourceforge.net are likely spots to set up shop. In addition, you get CVS and bug-tracking systems, which can be quite valuable in such a large-scale project where there are lots of pieces.

  • **New** Need help with your email?

    If you’re forgotten your password (it’s so easily done), you need help setting up your email or you’re having problems with your email account please follow the step by step instructions to get help setting up and fixing any email issues you’re having.
    Simply answer a few questions about your email account and what you need help with, and we’ll help with the rest.
    Each step includes a helpful picture to keep you right.
    We’d love to get your feedback on whether this helped you so please post on this board to let us know how you got on.
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

    - Go to Settings>iTunes and App Stores and sign out and sign into update/new account.
    Note:
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.

  • I need help with adding email link to my web page

    i am trying to create a form and add some email links so that
    when the submit button is hit, it sends a message to my email
    link.

    Search link
    http://www.adobe.com/cfusion/webforums/forum/search.cfm
    Enter
    form mail

  • Need help with new email problem

    Hi friends . . . I'm not sure if this is a forum that could help me figure out my new problem . . . but I'll give it a try. . .I need some help . . . My email is sometimes being sent to the wrong address. Instead of my Yahoo address, they're sent to AOL instead. At first I thought this was an eBay or Paypal problem, but other mail that I subscribe to is all of a sudden going to AOL instead of my Yahoo address . . .In all of these cases, the AOL address was never registered with the site. I'm not using an external POP mail program . . . just standard Yahoo mail with iMac and Firefox. Anyone have any clue what's going on . . . .thanks in advance for any help . . .

    You're using Google Mail : you should have said that earlier. the more information you give, the faster the solution.
    Then it's easy for you. Please read this article from the public knowledge base :
    http://www.blackberry.com/btsc/KB10332
    Duplicate sent email message arrives on BlackBerry smartphone when sent using Gmail
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Need help with a file i am trying to print

    i try to print this file using adobe reader with all updates and it says
    can not print pdf
    it is trying to flatten the file before the print
    it still sends it to the printer but my boss says it should not give us an error message
    please help me
    https://www.dropbox.com/s/8ts56kjul4o3ygk/13-118%20IP%202013-11-8.pdf

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • I need help with an email WiFi sending problem on my iPad 2

    I’m having an email WiFi sending problem on my iPad 2     Model:  MC774C/A;  IOS VERSION: 6.1.3 (10B329). 
    While I use 4 email accounts on the iPad -- Hotmail, Gmail, iCloud and ns.sympatico.ca ( a division of BellAliant) – the sending difficulty only relates to the ns.sympatico.ca.  The settings for this account are:         pop.bellaliant.net            and      smtp.bellaliant.net
    I first noticed the problem about 3 weeks ago while travelling across the country (Canada).  (I do recall about that time there was an update of my IOS and I also for my wife purchased from the Bell store an iPhone which shares my Apple account.)  Prior to that everything worked well for a couple of years.
    I noticed earlier this month that the iPad received mail fine but would not send at night using the motels’ WiFi.  During the day, using my 3G account, all worked fine.  I phoned Bell but was told that my experience was normal so I thought no more about it until I returned home and found the same problem at the house.  I called Bell again and worked for 2 hours with 3 Bell technicians who succeeded in getting the iPad to neither send nor receive and gave up advising me to take the iPad into a Bell store to have it looked at.  I did that and the young technician got the iPad sending and receiving by changing the        smtp.bellaliant.net      to         mail.1xbell.ca
    However, when I returned home again, I realized that it was working on my 3G and still doesn’t send on my WiFi
    I’m looking for any suggestions that might solve this annoying problem?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • I need help with an email inbox issue

    so basically I forgot my answers to my security questions, so I pressed "reset anwers....." And they said "email sent" but I waited to hours, days and didn't get that email! But I got an email from Apple about other stuff like opening iCloud and stuff, but I didnt get that email. And I did it like 100 times and turned off my phone, everything! And for paid apps it needs the answers to those questions and so does itunes.    plz anyone help make my day?❤️❤️

    If the email isn't in a spam filter, you need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (115845)

  • I need help with lost email

    I have had an "sbcglobal.net" account for at least 10 years or more. I always save emails in my inbox that I still need to address. Over the last week, I have noticed that many are going missing, and this morning, another 2 days of emails were deleted out of my box. It doesn't matter what device I use to look at my email, they are gone. They are not in the trash box. What do I do? Panicking!!! 

    Hello, !
    Thanks for posting. I'm sorry to hear some of your e-mails are missing. We would be happy to look into this for you, so please click here to send us a private message with your contact information, the best time to reach you, and a brief summary of the issue.
    You can expect a reply within two business days, so keep an eye on the little blue envelope icon in the top right corner of your screen. In the meantime, feel free to message me with any other questions or concerns.
    -Mariana

  • Mac Mini: reset password.... also need help with my emails

    Good day,
    i recently reset my password for my mac mini but as i never log off i have forgotten the password I am still logged in but i can't change the password without knowing the last one.... Is there a way around this?
    Also....
    I connected my email account to the mail system on the mac mini and it copied all of my emails over onto the hard drive... this i didn't want as i need to be able to use the emails while i am on the road... Is there a way that i can move them back? If not is there a way that i can pull them onto my icloud account or any other account from apple that i can have access to them....
    This will also cause issues if i have to reset the mini i am worried i will loose all my emails.
    Thanks for the help!

    Reset the Admin PW. The data on the computer wilm not be lost. You will lose your passwords in your keychain
    For 10.6 and earlier
    OS X: Changing or resetting an account password
    For later
    OS X Lion>: How to Easily Reset the Administrator Password

  • I also need help with the email link to transfer my content to Kobo.

    Its possible that the email might have landed in the Junk folder and then it was cleaned out.
    Please help asap.
    Thanks,
    Solved!
    Go to Solution.

    I understand. As of the moment i am coordinating with another division so it can be taken care of. 

  • Need help with using Email Activation Agent

    Hi,
    please, help me with using E-mail Activation Agent.
    I used email activation agent to start business processes by email, but after that letter disappear from email-server.
    Where letter was located?
    Can I get and read letter for processing?

    Mail/Preferences/General - do you have Unibox set as your default e-mail application?

  • New to Adobe Forms and need help with Submit Email button

    I am new to Adobe Forms in Windows.  I created a form with a submit email button.  When users try to click the button, the message is operation cannot be completed.  My test user has Adobe Reader 9 installed.  I'm at a loss as to how to resolve the issue.  Please assist.  TIA!

    Three different aspects
    1. Set the form up to submit the data (XML or FDF), not the full PDF. You can import the data to the PDF on your end.
    2. You can turn on Extended Reader Rights, but then limit the use/users to 500 by the EULA. The applicability of this option depends on your intended application. In a small office, it would be fine. For general web use you would likely exceed the limit and be in violation of the EULA.
    3. There may be an e-mail problem, one reason that e-mail is not recommended for form submission (even if the manual discusses it). Again, in a controlled environment like an office it will probably work fine, but in a web setup it is best to use a web script. There are 2 problems with e-mail that both depend on the client system (YOU have no control, but will be blamed in any case). First, the client machine has to be set up as an active MAPI client. Many folks do not have this on. Second, some e-mail clients treat PDFs like text and the result is a corrupt e-mail submission, even if it makes to you.
    If you have the possibility of web submission, do it. I suggest only having the form data submitted and not the form.

  • Need help with sending email notifications via OEM

    Hi Folks,
    Objective: To setup email notification if the listener or the database instance goes down
    Version: 10 g Rel 2
    I have setup the email from OEM. I have verified the configuration by successfully sending myself test emails.
    I have configured the schedule (7 days a week, from 1 A.M to 11 P.M)
    I have also configured the out-of-the package alerts so that I will be notified if the listener goes down
    However, once I manually stop the listener, no email is sent out?
    Can somebody spot any obvious steps that I might have missed? Or if somebody can suggest any debugging steps that might help to resolve the issue ?
    Thanks in advance.
    rogers42

    Hi Roger
    Ok, tell me
    1. You have a user like DBA and configurate this count for recive email?
    2. When You try send email from Console You recive this email? Your prove server email
    You should recive this mensagge
    Este mensaje de correo electrónico de prueba de Oracle Enterprise Manager indica la configuración correcta de la dirección de correo electrónico y del servidor de correo.

  • Need help with my email on my Blackberry Curve

    I have a Yahoo email address (POP) and a AOL email address (IMAP).  I use firefox thunderbird on my PC and they both work independently of the other. However, I am having problems on my Blackberry Curve.  When email is sent to my Yahoo account it appears on my AOL account. (I want to to stop this from happening.  In coming miss calls show up on my AOL account and I would like it to appear on my Yahoo account.
    I want the two emails to get only the mail that is meant for each account. Can anyone help me? Thanks
    Message Edited by Smile on 10-15-2008 07:08 AM
    Message Edited by Smile on 10-15-2008 07:09 AM
    Solved!
    Go to Solution.

    Your BlackBerry will have ONE main message folder "Messages". You will have two others, one for Yahoo and one for the AOL account.
    ALL email will come to the main Messages folder, be default, and that can't be changed. I would suggest hiding your Yahoo and AOL folders, since they basically duplicate what is in the main messages folder.
    Some people will hide the main messages folder and leave the other email specific folders visable, however since your main messages folder is also the only place your PIN and other type messages will collect, you might miss one of if you hide that folder.
    For the missed calls in your main messages folder--press the green phone dial key > Menu key (left of the trackball) and press Options > Call Logging. Set that to NONE, and save.
    If you have further questions, please ask.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for