Trying to script some actions in Photoshop

Hi, first time poster, so bear with me a bit.
I haven't used AppleScript since I was a kid in the days of Classic, when basically everything could be recorded, and have just started trying to play with it in OSX today. Actually typing out what you want things to do seems to be much harder, at least for me, who has zero programming experience.
For reference's sake, I'm running 10.6.8, and using Photoshop CS5.
What I'm trying to do here, essentially, is quicken the process of resizing and saving some .psds. Specifically, I need them as at a height of 1300 pixels, resolution of 72 dpi; and I need to change their color modes to Indexed Color. I also need them saved as non-interlaced PNGs, using the same filenames (other than extension) that they currently have, in a particular folder on my harddrive. While I could do all this easily enough using batch conversion, I'm trying to use AppleScript because there are more detailed edits that I need to do to each file in Photoshop, anyway. I figure if I can get a script that'll resize/remode my files the way I want, and one that'll save them how and where I want, I can just skip the batch conversion altogether and save them in the appropriate fashion immediately after I finish my manual edits.
So, using the example in CS5's AppleScript Reference guide, I tried making a script to save a file as a PNG. This is the script:
tell application "Adobe Photoshop CS5"
make new document
set myFile to "blahblah location"
set myOptions to {class:PNG save options}
save document in file myFile as PNG with options ¬
myOptions appending no extension without copying
end tell
For reference, this is the example script in the AppleScript Ref document. As you can see, they're identical except for the location/filename.
tell application "Adobe Photoshop CS5"
make new document
set myFile to "Data:docsamples:testfiles:PngTest.png"
set myOptions to {class:PNG save options}
save current document in file myFile as PNG with options ¬
myOptions appending no extension without copying
end tell
When I try to run it this way, I get a syntax error: "Expected 'given', 'with', 'without', other parameter name, etc. but found identifier." When I click "Okay," it highlights the word "options" in "PNG save options," so I assume that's the problem. I tried getting rid of the "save options" bit, but then I get another syntax error: "Expected end of line, etc. but found identifier," highlighting "myOptions" in the second to last line. If I try removing the stuff talking about options entirely, it gives me a general AppleScript error: "The variable PNG is not defined."
So it's quite clear that I have no idea what I'm doing, but I do find it strange that the example script with virtually no modifications isn't working.
If anybody can explain how to write a script for the other functions I'm trying to accomplish, I'd appreciate that, as well, as I do this sort of work on a fairly regular basis.
Thanks for reading!

Though I have not done it, I think you can if you add a checkbox bean (not the tableSelection) and specify an event for the checkbox bean.
Regards,
LC

Similar Messages

  • Some actions don't work in photoshop cc 2015

    I researched this subject but without success.
    I can't understand why the program (photoshop CC 2015) takes some actions as margin placement, but don't assume simple things such as color balance, contrast or levels.
    Someone can explain me this? I'm already disappointed with this version.
    Thanks,
    CA

    Upgrades exist to improve and that's what I expected, and your observation does not answer my question, by the way.
    I'm here just to learn more than what I already know.

  • Help! I am trying to use the scripts image processor in Photoshop CC.

    Help! I am trying to use the scripts>image processor in Photoshop CC. When I click on it it comes up with an error saying that it cannot find the Javascript Plug In. I have the newest version of Java installed. How do I get it to work in Photoshop. Do I have to download a separate plug in? Any help would be greatly appreciated.

    Java is not Javascript.
    Do you have a Mac or PC?
    If PC, do you have this file on your system?
    C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Required\Plug-Ins\Extensions\ScriptingSupport.8li
    If not, you've got a corrupted installation of Photoshop.  Uninstalling and reinstalling may help.
    -Noel

  • How can I get some of my actions in photoshop cs4 from my old computer to photoshop cs5 on my new co

    Sofar I have tryed to find the actions on my computer but without succes.
    There are not in the presets/action folder. That folder is empty.
    If I try to save the actions from the actions window in photoshop I cannot manage because the "save action"  function is not available (it's there but can't be clicked...)
    What to do?
    Thanks,
    Greg

    Reminder to everyone reading this thread:
    Take a little time and save your actions sets from Photoshop now, assuming you've changed them or added to them since last time you saved them or loaded them from a file.  They're stored by Photoshop inside a proprietary preferences file, and if you should lose your Photoshop configuration your actions could be lost as well.
    Save them in .atn files now, just in case.
    -Noel

  • Trying to upload "actions" to photoshop elements 10 but I am having troubles because things are not on my hard drive that need to be there??

    I am trying to upload "actions" to photoshop elements 10 but I am having troubles!  I watched the YouTube tutorial but seem to be missing "Adobe" in my Hard Drive!  Help me I am stuck....

    I just loaded my actions using the PSE 10 from the App Store.
    Close PSE.
    Access the System library location from Finder menu, click "Go" in the menu bar then select "Go to Folder...". Type in  "~/Library" and click Go.
    The systems Library will open up and then you take this path:
    Application Support > Adobe > Adobe Photoshop Elements 10 Editor > Presets > Actions (The Actions folder is where you move your actions file to)
    Then go to the Photo Creations Folder > Locales > en_US and delete the MediaDatabase.db3 file (move it to the trash)
    The next time you launch PSE your Actions DB will be rebuilt with the new actions installed.

  • Actions in Photoshop Elements 10?

    I'm trying to figure out how to use actions, it looks like it's a great way to edit photos. I'm watching youtube videos and they all say "go to window" and "actions" bar. I did that and when I went to window there was no actions bar? Is that something that isn't included in elements 10? or is there somewhere else to find it?
    thanks.
    Nikki

    That's only in Photoshop. PSE has a limited kind of actions player in guided edit, or you can install actions in the effects panel.
    Texas Chicks has very complete instructions for installing actions:
    http://www.texaschicksblogsandpics.com/photography-page/installing-actions-in-photoshop-el ements/
    However, there are some differences between using actions in PSE and in PS. The action should only include steps that PSE understands (no history snapshot, for instance) and you can only run an action on one image at a time in PSE, not on a folder the way you can in PS.

  • Actions in Photoshop Elements 8

    Hi everyone,
    I'm trying to figure out if you can use any Photoshop action in Elements 8.  If not, how can you tell which actions work in Elements and which don't (short of downloading and them and testing)?
    Thank you very much!

    Yes, you can use some actions. Whether a given action will work or not depends on whether or not it includes steps PSE can't understand. There are actions made specially for elements. Otherwise, you'd have to try to see, or ask whoever wrote the action if they know.

  • Scripting Illustrator actions, incorporating calls to Excel

    Hello all, I need some help...
    I am building a series of logos — based on word strings —  using Illustrator CS4 with a combination of Actions, but also retrieving the word string from an Excel file.
    Normally for one or two iterations of the process, I would not hassle with a script, but this is a mind-numbing repetitive task, and I have to make 6,000 logos!! Seems the ideal use for a script.
    We have tried to work with ExtendScript Toolkit (ESTK) but we can't get our heads around how to make it do certain things, and I can't find anyone who really knows how to use ESTK correctly.
    I have a MAC, so the script has to be written in Java Script or Apple Script.
    Here's what I need to do:
    Execute Action: Open a Master Illustrator doc. This doc is already configured with art board, pre-defined type box (Area Type Optioned), Charater Styles, Drop Shadow parameters set. <pause Action>
    Run Script: Retrieve the word string from a cell in Excel worksheet (or CSV??). Some are single words, first letter capped. Some are two to four words Camel Cased. Example: "DinnerPartiestm". There are two additional charaters "tm" at the end of the word string that will be acted upon (remember these two characters for item 7 below)
    Run Script: Place this WordString into the predefined type box in the Illustrator Master doc. That is, in Illustrator, "select" the type box so the cursor is at first position and place the word string — copy from Excel & paste into Illustrator? <pause Script>
    Execute Action: Apply character style 1— font with point size, letter spacing, stroke and colour (It just happens to be red). Example: DinnerPartiestm  <pause Action>
    Run Script: Select all caps in word string. Example: DinnerPartiestm <pause Script>
    Execute Action: Apply character style 2 — Caps Only (selected) — New point size, baseline offset. Example: DinnerPartiestm <pause Action>
    Run Script: Select last two letters of word string. Example: DinnerPartiestm <pause Script>
    Execute Action: Apply character style 3 — last two letters only (selected) — New point size, change colour, baseline offset. Example: DinnerPartiestm <pause Action>
    Run Script: Select text box. <pause Script>
    Execute Action: Apply Stylize > Drop Shadow — On contents of text box, preset DS parameters in either Appearence panel or Effect menu.
    Execute Action: File > Save As .ai document. <at Save As dialog, pause action>
    Run Script: Retrieve file name from Excel and place in Save As dialog (copy & paste?). In next column in Excel doc, same row, is a SEO-friendly file name. Example: word string is "DinnerParties"; file name (next column) is "logo-dinner-parties"
    Run Script: Select folder to save the .ai doc into. Example: Folder is "Logos AI". <pause Script>
    Execute Action: Complete Save As. Example: in Folder "Logos AI" now we have the file "logo-dinner-parties.ai"
    Execute Action [assumes that the Saved As document — logo-dinner-parties.ai — is now the active one in Illustrator]: Save for Web & Devices. Preset to PNG24/Transparent. Correct file name will NOT be in Save field. <at Save dialog, pause action>
    Run Script: Repeat retrieval process to get same file name from Excel.
    Run Script: Select new folder to save the .png doc into. Example: Folder  is "Logos PNG". <pause Script>
    Execute Action: Complete Save for Web. Example: in Folder "Logos PNG" now  we have the file "logo-dinner-parties.png"
    Execute Action: Close
    Repeat steps 1 though 19 until all word strings processed: Script has to know to go to next word string (next row) in Excel doc.
    This is a tricky one, but there's got to be a way to automate the process... otherwise I'll go crazy doing this manually!!
    IS THERE ANYBODY OUT THERE WHO CAN HELP?
    Thanking you in advance for any assistance.
    All the best.

    IS THERE ANYBODY OUT THERE WHO CAN HELP?
    Depends on what you mean by "help." Are you asking someone to do the whole thing for you (would require more detail), or do you intend to do it yourself, but are stuck on something? (You say you "tried to work with ESTK" and "can't find anyone who really knows how to use ESTK correctly"; but you don't say specifically what you're struggling with in ESTK.)
    ...doc is already configured with art board, pre-defined type box (Area Type Optioned), Charater Styles, Drop Shadow parameters set.
    Much of what can be done with any approach depends largely upon what Appearances and/or Effects are involved, and where. You imply that you want all of the "logo" to be contained in a single textFrame object. But Drop Shadow Effect cannot be applied at the character level, so it can't be included in a Character Style.
    So if you don't want all the text to have the same drop shadow, you will be involving multiple textFrame objects. That will lead to the complication of having to position the two textFrames relative to each other, depending on their dimensions after the varying text is inserted.
    Retrieve the word string from a cell in Excel worksheet (or CSV??)
    With scripting, it would be inefficient and unnecssary to go back-and-forth to the spreadsheet to extract values one at a time. Typically, you would create an array containing the full set of values, and then iterate through the elements of the array.
    Some are single words, first letter capped. Some are two to four words Camel Cased. Example: "DinnerPartiestm".
    So you're going to need a sub-routine of some kind (in Javascript, a function) to find capital letters.
    There are two additional charaters "tm" at the end of the word string that will be acted upon...
    If this is the same in each instance, and if you are going to script this, there is no need to include it in the data.  Insert the "tm" programmatically.
    That is, in Illustrator, "select" the type box so the cursor is at first position and place the word string — copy from Excel & paste into Illustrator?
    Using script, you don't have to select the textFrame, copy, or paste in order to insert content. You would declare a variable, assign its value (from the above-mentioned array), add the variable's value as text to textFrame's content.
    Apply character style 1— font with point size, letter spacing, stroke and colour (It just happens to be red). Example: DinnerPartiestm
    Here you will run into a difficulty inherent in Illustrator's poor implementation of stroked text. You can apply a Stroke at the Character level and include that Appearance in a Character Style. But Illustrator always positions such strokes in front of the fill--something you almost never want, because it "chokes" the fills, wrecking the shape of the characters. The workaround is to Add New Stroke and position that below the Characters listing in the Appearance Palette. But script provides no access to added strokes or fills and Added Strokes cannot be applied at the character level.
    Select all caps in word string. Example: DinnerPartiestm
    Illustrator cannot select discontiguous text strings. Again, script does not have to select objects in order to change their properties.
    Apply character style 2 — Caps Only (selected) — New point size, baseline offset. Example: DinnerPartiestm
    Apply character style 3 — last two letters only (selected) — New point size, change colour, baseline offset. Example: DinnerPartiestm
    The applyTo method of the CharacterStyle object. Or, just set the size and baselineShift properties of the characterAttributes property of the textRange directly.
    Apply Stylize > Drop Shadow — On contents of text box
    Drop Shadow Effect cannot be applied to the contents (character level) of a textFrame--only to the textFrame object itself.
    My very limited understanding of ESTK is that it is a scripting tool for  use in Illustrator.
    It's a script text editor included with the Creative Suite. You can use it to build scripts for any of the CS products (or entirely other purposes, for that matter). Or, you can choose to not use it at all. A Javascript is just a text file. Tools like ESTK add conveniences, references, etc., geared toward scripting.
    So, I'm only acting on the word string....
    But I am also not a coder...
    Which is why I would look into simpler already-built methods before jumping into a tedious solution scripted for Illustrator. For example: Many, if not most, AI users are familiar with InDesign. InDesign provides a proper dataMerge feature that can handle ordinary tab-delimited text. It's handling of strokes on text is correct, unlike Illustrator. If you set it up accordingly, it can create all the separate pages for you.
    You would:
    1. Draw the fixed graphic in Illustrator.
    2. Place the Illustrator graphic on InD's master page.
    3. Set and style the text objects. Insert DataMerge tags.
    4. Import the data and run the Merge function.
    InD builds individual pages for each row of the data. You're done. Export to PDF. InD and Acrobat also have their own scripting models. Either one can handle the specific naming convention, if really needed.
    Again, it depends on what exactly is "special" about the text object(s) you are manipulating with variable content. For example, if you're using an AI-specific Warp effect, you'd be back to Illustrator.
    Anyway, you want a paying gig?
    I do some freelance work as time permits and interest strikes, but I'm not cheap, and that's not why I frequent these forums.
    Scripting your solution entirely in AI may very well be possible, but whoever does it will need to see the specific objects, styles, etc., involved to avoid unnecessary guessing and time-consuming round-tripping. Why don't you post an image and/or an AI file?
    JET

  • My brushes won't work with actions in Photoshop such as Save the Dress, Ying-Yang, or Foundation

    When I try to use my brushes with actions in Photoshop, such as Save the Dress, Ying-Yang, or Foundation, they won't work.  I've tried resetting the brushes, changing the opacity, restarting the program, and unlocking the layers.  It was working perfectly, but suddenly just stopped.  When I click on the image, it doesn't do anything.  There is also a small black box next to the action the I am using in the history box.  When my brushes were working, that box would show in white where I used the brushes on my pictures, but now it doesn't register anything that I try to do. 

    christyh61213853 wrote:
    Have u gotten an answer from anyone on ur situation with the brushes? I am unable to use my brushes as well and I can't figure it out also...
    You would do better starting a new thread, rather than bump a thread from 2012.  Some of those posters might not have used this forum for years, and a lot has changed regards both Photoshop and operating systems since 2012
    You need to give specific information about _your_ problem.
    What version of Photoshop?
    What operating system?
    Which brushes, and if not standard, where did you get them from, or did you make them?
    What is happening, and what have you tried so far to fix it?

  • Can't change size of a picture after trying to create an action, help!!!

    Just tried to automate a batch and resize, and then save for web all of the pictures - it didn't work the way I wanted (probably recorded something wrong). But When I tried to rerecord the action - it became impossible to change size of the pictures. What's wrong? I already restarted my computer, but the function of size changing still isn't working.

    If all you want to do is to resize your images for the web you do not have to record an action you can do that with the Image Processor script that ships with Photoshop. Menu File>Scripts>Image Processor.  You can also have it include one of your actions when its processing your images.  You can also select image in the bridge then use menu Tools>Photoshop>Image processor

  • Automation? Batch? Scripts? Actions? Droplets?

    Hello,
    I'm trying to resize and save a bunch of .bmp pictures.
    I tried tinkering with some options, but couldn't get it to work any faster than doing each one individually. I think I'm going about it all wrong...
    Is there an easy to way to import all the pictures at once, change the Image Size and then save as a JPEG in a new folder?
    I'm using Photoshop CS2.
    Thanks in advance!

    Hello,
    Try "File > Scripts > Image Processor"

  • Infinite loop - "Some actions taken while...offline could not be completed"

    I have 4 IMAP accounts (.Mac, Gmail and 2 at SpamArrest). Occasionally, I get in this infuriating state where I keep getting the following error:
    "Some actions taken while the account "ClickMarkets-SA" was offline could not be complete online.
    Mail has undone actions on some messages so that you can redo the actions while online. Mail has saved other message in mailbox "INBOX.Sent Messages" in "On My Mac" so that you can complete the
    actions while online.
    Additional information: The connection to the server "mail.spamarrest.com" on port 993 timed out."
    The only way I've found to resolve this infinite loop of messages (which subsequently backs up all other mail processing) is to quit mail, then cd to ~/Library/Mail/[email protected]/.OfflineCache and delete everything in there then relaunch mail.
    In each cases, I end up with a mailbox folder (Sent or Drafts) in the folder "On My Mac" which has one copy for each attempt at handling the message "online."
    I opened up the Connection Doctor and looked at the log details and saw that Mail is opening a socket to spamarrest and starting an APPEND operation on my INBOX.Drafts folder -- I have "store drafts on server" checked. It appears the APPEND operation is hanging and causing a timeout (see transcript below). This happens every 60 seconds. The error that I see after the timeout is:
    * BYE [ALERT] Fatal error: INTERNAL ERROR: Keyword hashtable memory corruption.: Input/output error
    Who's Fatal error is that?
    SpamArrest is trying to tell me the problem is with both of my computers and not their server. (Yes, this is hitting both my MacBook Pro and my iMac). Can anyone shed some more light on this? IMAP should be able to handle multiple computers so I don't see that as a problem. Is my Mail app not following protocol? Is it a filesystem issue (e.g. SpamArrest doesn't like the name of the folder)?
    Thanks.
    Chip
    Here is the log file segment:
    CONNECTED May 19 17:13:11.939 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1db74280
    READ May 19 17:13:12.266 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1db74280
    * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=CRAM-MD5 AUTH=PLAIN ACL ACL2=UNION] IMAP ready.
    WROTE May 19 17:13:12.301 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    1.785 LOGIN clickmarkets *******
    READ May 19 17:13:12.365 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    1.785 OK connected to proxy server.
    WROTE May 19 17:13:12.405 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    2.785 CAPABILITY
    READ May 19 17:13:12.463 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=CRAM-MD5 ACL ACL2=UNION
    2.785 OK CAPABILITY completed
    WROTE May 19 17:13:12.501 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    3.785 LIST "" ""
    READ May 19 17:13:12.561 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    * LIST (\Noselect) "." ""
    3.785 OK LIST completed
    WROTE May 19 17:13:12.616 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    4.785 APPEND "INBOX.Drafts (ClickMarkets-SA)" (\Seen \Draft $NotJunk NotJunk) "19-May-2009 17:07:30 -0700" {4525}
    READ May 19 17:13:13.627 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    + OK
    WROTE May 19 17:13:13.663 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    X-Uniform-Type-Identifier: com.apple.mail-draft
    From: Chip Roberson <[email protected]>
    To: "Charles S. Roberson" <[email protected]>
    X-Universally-Unique-Identifier: 155cc0fa-b377-4dd6-a5e6-d6563a23c711
    Subject: PM Test 1
    X-Apple-Auto-Saved: 1
    X-Apple-Mail-Remote-Attachments: YES
    X-Apple-Windows-Friendly: 1
    Message-Id: <[email protected]>
    Content-Type: text/html;
    charset=US-ASCII
    Content-Transfer-Encoding: quoted-printable
    Mime-Version: 1.0 (Apple Message framework v935.3)
    X-Apple-Base-Url: x-msg://85/
    Date: Tue, 19 May 2009 17:07:30 -0700
    X-Apple-Mail-Signature: 34D68E00-8E23-44FB-B72C-FFA86BB66FB3
    <html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
    -webkit-line-break: after-white-space; ">I'm starting to wonder if this =
    will ever fail when I need it to fail!<div><br><div =
    id=3D"AppleMailSignature"> <span class=3D"Apple-style-span" =
    style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
    Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
    font-weight: normal; letter-spacing: normal; line-height: normal; =
    orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; =
    white-space: normal; widows: 2; word-spacing: 0px; =
    -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
    0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
    auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
    break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
    after-white-space; "><span class=3D"Apple-style-span" =
    style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
    Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
    font-weight: normal; letter-spacing: normal; line-height: normal; =
    orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
    widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
    -webkit-border-vertical-spacing: 0px; =
    -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
    auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
    break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
    after-white-space; "><span class=3D"Apple-style-span" =
    style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
    Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
    font-weight: normal; letter-spacing: normal; line-height: normal; =
    orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
    widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
    -webkit-border-vertical-spacing: 0px; =
    -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
    auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
    break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
    after-white-space; "><span class=3D"Apple-style-span" =
    style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
    Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
    font-weight: normal; letter-spacing: normal; line-height: normal; =
    orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
    widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
    -webkit-border-vertical-spacing: 0px; =
    -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
    auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
    break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
    after-white-space; "><span class=3D"Apple-style-span" =
    style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
    Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
    font-weight: normal; letter-spacing: normal; line-height: normal; =
    orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
    widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
    -webkit-border-vertical-spacing: 0px; =
    -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
    auto; -webkit-tex
    WROTE May 19 17:13:13.697 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    t-stroke-width: 0px; "><div style=3D"word-wrap: =
    break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
    after-white-space; ">--
    Chip =
    Roberson
    [email protected]
    http://www.linkedi=
    n.com/in/chiproberson
    =
    <br =
    class=3D"Apple-interchange-newline">
    </body></html>=
    READ May 19 17:14:13.626 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x189d0050 -- thread:0x1d314d10
    * BYE Disconnected for inactivity.
    * BYE [ALERT] Fatal error: INTERNAL ERROR: Keyword hashtable memory corruption.: Input/output error
    CONNECTED May 19 17:14:19.092 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x1db74280
    READ May 19 17:14:19.414 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x1db74280
    * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=CRAM-MD5 AUTH=PLAIN ACL ACL2=UNION] IMAP ready.
    WROTE May 19 17:14:19.449 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040
    1.786 LOGIN clickmarkets *******
    READ May 19 17:14:19.517 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040
    1.786 OK connected to proxy server.
    WROTE May 19 17:14:19.555 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040
    2.786 CAPABILITY
    READ May 19 17:14:19.622 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040
    * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=CRAM-MD5 ACL ACL2=UNION
    2.786 OK CAPABILITY completed
    WROTE May 19 17:14:19.659 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040
    3.786 LIST "" ""
    READ May 19 17:14:19.718 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040
    * LIST (\Noselect) "." ""
    3.786 OK LIST completed
    WROTE May 19 17:14:19.755 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040
    4.786 APPEND "INBOX.Drafts (ClickMarkets-SA)" (\Seen \Draft $NotJunk NotJunk) "19-May-2009 17:07:30 -0700" {4525}
    READ May 19 17:14:19.818 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040
    + OK
    WROTE May 19 17:14:19.855 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:mail.spamarrest.com -- port:993 -- socket:0x182eff40 -- thread:0x19fed040

    Okay I did a little more digging and found another thread that answers this issue.
    http://discussions.apple.com/thread.jspa?threadID=1276506

  • I lost a folder, with all the pictures, while trying to move some photos to a diferent folder (both folders disappeared)

    I was trying to move some pictures from a folder to another, but all the pictures disappeared! Even the folder that the pictures were! I searched all my computer but I can't find them! Does anyone know what can I do??
    Before I lost all pictures a message appeared asking if I wanted to replace the photos that have the same name, and I said "yes" and "do this to all"; after that a message appeared saying that there was an error and the pictures were note moved, but all my files disapeared!!
    I search even the trash (it is empty) and don't know whatelse to do!
    I would appreciate any help.
    Thanks

    First of all, we'd need to know what version of Bridge, Photoshop and the OS you are using.
    One of the earliest versions of Bridge was indeed known occasionally to disappear files and/or folders, but that was a long time ago, in CS2 I believe.  Later versions do not do that.
    Do a search for the names of the files and or folder(s), not with the pretty useless Spotlight or the Finder Search (which uses the same, limited Spotlight search engine).  Instead, try the free EasyFind.  http://www.versiontracker.com/dyn/moreinfo/macosx/8707
    Second, I'll assume you mean folder when you type "a file with all my photos in it". Unless you put the folder in the trash and then deliberately emptied the trash, it's more likely you just accidentally stuck the folder inside another one, or accidentally renamed it.  EasyFind will find it or its contents.
    If EasyFind fails to find a trace of any of the files or of the folder, then the files are indeed gone. but that 's highly unlikely unless you deliberately empied the trash.
    Good luck.
    Wo Tai Lao Le
    我太老了

  • Secret recording of  actions in photoshop elements revealed!

    First screenshot shows getting ready to record an action in photoshop elements 8.
    The second screenshot shows testing the newly recorded action with the script events manager.

    Another way of testing a recorded action or testing any action
    before installing one in photoshop elements. With this script
    you can load one action set or ten or more action sets for
    testing. Also an action can be set to run more than once in a
    row.

  • Problem with some actions of a page in the ie

    the page is built on Studio Creator 2.1 in Fedora 4, when i run in ff work's fine. But, in the ie, some actions doesn't work well: what happens is that all the actions are redirected to another page's application!
    i think that it could be javascript incopatibility, for example i have a table component in the page, and when i click on the button(header table) for order rowgroup, i'm redirected to another page.
    ie version - 6.0
    windows 2000 server
    i don't know what to do.

    JSP Code
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{tarefa.page1}" id="page1">
                <ui:html binding="#{tarefa.html1}" id="html1">
                    <ui:head binding="#{tarefa.head1}" id="head1">
                        <ui:link binding="#{tarefa.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{tarefa.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{tarefa.form1}" id="form1" target="_self">
                            <div style="height: 126px; left: 72px; top: 24px; position: absolute; width: 702px">
                                <jsp:directive.include file="cabecalho.jspf"/>
                            </div>
                            <div style="left: 72px; top: 558px; position: absolute">
                                <jsp:directive.include file="rodape.jspf"/>
                            </div>
                            <div style="height: 306px; left: 72px; top: 144px; position: absolute; width: 144px">
                                <jsp:directive.include file="menu1.jspf"/>
                            </div>
                            <ui:label binding="#{tarefa.label1}" id="label1" style="left: 220px; top: 150px; position: absolute" text="Cadastro/Manutencao de Tarefas"/>
                            <ui:staticText binding="#{tarefa.staticText1}" id="staticText1" style="left: 240px; top: 170px; position: absolute" text="Data:"/>
                            <ui:staticText binding="#{tarefa.staticText2}" id="staticText2" style="left: 240px; top: 210px; position: absolute" text="S�rie:"/>
                            <ui:staticText binding="#{tarefa.staticText3}" id="staticText3" style="left: 240px; top: 230px; position: absolute" text="Disciplina:"/>
                            <ui:staticText binding="#{tarefa.staticText4}" id="staticText4" style="left: 240px; top: 250px; position: absolute" text="Descricao:"/>
                            <ui:calendar binding="#{tarefa.dtTarefa}" dateFormatPattern="yyyy-MM-dd" id="dtTarefa" style="height: 18px; left: 300px; top: 170px; position: absolute; width: 108px"/>
                            <ui:dropDown binding="#{tarefa.cmbSerie}" converter="#{tarefa.integerConverter1}" id="cmbSerie"
                                items="#{tarefa.serieDataProvider.options['serie.id,serie.serie']}" style="height: 18px; left: 300px; top: 210px; position: absolute; width: 198px"/>
                            <ui:dropDown binding="#{tarefa.cmbDisciplina}" converter="#{tarefa.integerConverter2}" id="cmbDisciplina"
                                items="#{tarefa.disciplinaDataProvider.options['disciplina.id,disciplina.disciplina']}" style="height: 18px; left: 300px; top: 230px; position: absolute; width: 198px"/>
                            <ui:textArea binding="#{tarefa.txtDesc}" id="txtDesc" style="height: 36px; left: 300px; top: 250px; position: absolute; width: 200px"/>
                            <ui:button action="#{tarefa.btnNovo_action}" binding="#{tarefa.btnNovo}" id="btnNovo"
                                style="left: 239px; top: 290px; position: absolute" text="Novo"/>
                            <ui:button action="#{tarefa.btnEditar_action}" binding="#{tarefa.btnEditar}" id="btnEditar"
                                style="left: 299px; top: 290px; position: absolute" text="Editar"/>
                            <ui:button action="#{tarefa.btnAtualizar_action}" binding="#{tarefa.btnAtualizar}" id="btnAtualizar"
                                style="left: 359px; top: 290px; position: absolute" text="Atualizar"/>
                            <ui:button action="#{tarefa.btnCancelar_action}" binding="#{tarefa.btnCancelar}" id="btnCancelar"
                                style="left: 439px; top: 290px; position: absolute" text="Cancelar"/>
                            <ui:messageGroup binding="#{tarefa.messageGroup1}" id="messageGroup1" style="height: 88px; left: 522px; top: 180px; position: absolute; width: 250px"/>
                            <ui:hiddenField binding="#{tarefa.op}" id="op"/>
                            <ui:hiddenField binding="#{tarefa.id}" id="id"/>
                            <ui:table augmentTitle="false" binding="#{tarefa.table1}" id="table1" lite="true" paginationControls="true"
                                style="height: 126px; left: 234px; top: 324px; position: absolute" width="540">
                                <script language="javascript1.2" type="text/javascript"><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel() {
      var table = document.getElementById("form1:table1");
      table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged() {
      var table = document.getElementById("form1:table1");
      return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel() {
      var table = document.getElementById("form1:table1");
      return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows() {
      var table = document.getElementById("form1:table1");
      table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table.  This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows(rowGroupId, selected) {
      var table = document.getElementById("form1:table1");
      table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions() {
      // Determine whether any rows are currently selected
      var table = document.getElementById("form1:table1");
      var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
      // Set disabled state for top actions
      document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
      // Set disabled state for bottom actions
      document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
                                <ui:tableRowGroup binding="#{tarefa.tableRowGroup1}" id="tableRowGroup1" rows="3" sourceData="#{tarefa.tarefaDataProvider1}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{tarefa.tableColumn1}" id="tableColumn1" width="53">
                                        <ui:button action="#{tarefa.button1_action}" binding="#{tarefa.button1}" id="button1" text="#{currentRow.value['tarefa.id']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn2}" headerText="Data" id="tableColumn2" sort="tarefa.data" width="177">
                                        <ui:staticText binding="#{tarefa.staticText6}" id="staticText6" text="#{currentRow.value['tarefa.data']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn5}" headerText="Descricao" id="tableColumn5" sort="tarefa.descricao" width="189">
                                        <ui:staticText binding="#{tarefa.staticText9}" id="staticText9" text="#{currentRow.value['tarefa.descricao']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn6}" headerText="Serie" id="tableColumn6" sort="serie.serie">
                                        <ui:staticText binding="#{tarefa.staticText10}" id="staticText10" text="#{currentRow.value['serie.serie']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn7}" headerText="Disciplina" id="tableColumn7" sort="disciplina.disciplina">
                                        <ui:staticText binding="#{tarefa.staticText11}" id="staticText11" text="#{currentRow.value['disciplina.disciplina']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn8}" id="tableColumn8">
                                        <ui:button action="#{tarefa.button2_action}" binding="#{tarefa.button2}" id="button2" text="Delete"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>java code
    package cmsgeracao;
    import com.sun.data.provider.RowKey;
    import com.sun.rave.web.ui.appbase.AbstractPageBean;
    import com.sun.rave.web.ui.component.Body;
    import com.sun.rave.web.ui.component.Form;
    import com.sun.rave.web.ui.component.Head;
    import com.sun.rave.web.ui.component.Html;
    import com.sun.rave.web.ui.component.Link;
    import com.sun.rave.web.ui.component.Page;
    import javax.faces.FacesException;
    import com.sun.rave.web.ui.component.Label;
    import com.sun.rave.web.ui.component.StaticText;
    import com.sun.rave.web.ui.component.Calendar;
    import com.sun.rave.web.ui.component.DropDown;
    import com.sun.rave.web.ui.component.TextArea;
    import com.sun.rave.web.ui.component.Button;
    import com.sun.rave.web.ui.component.Table;
    import com.sun.rave.web.ui.component.TableRowGroup;
    import com.sun.rave.web.ui.component.TableColumn;
    import com.sun.data.provider.impl.CachedRowSetDataProvider;
    import javax.faces.convert.IntegerConverter;
    import com.sun.rave.web.ui.component.MessageGroup;
    import com.sun.rave.web.ui.component.HiddenField;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import com.sun.rave.web.ui.model.DefaultTableDataProvider;
    * <p>Page bean that corresponds to a similarly named JSP page.  This
    * class contains component definitions (and initialization code) for
    * all components that you have defined on this page, as well as
    * lifecycle methods and event handlers where you may add behavior
    * to respond to incoming events.</p>
    public class tarefa extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
         * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
         * This method is automatically generated, so any user-specified code inserted
         * here is subject to being replaced.</p>
        private void _init() throws Exception {
            disciplinaDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.disciplinaRowSet}"));
            serieDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.serieRowSet}"));
            tarefaDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.tarefaRowSet}"));
            tarefaDataProvider1.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.tarefaRowSet}"));
        private Page page1 = new Page();
        public Page getPage1() {
            return page1;
        public void setPage1(Page p) {
            this.page1 = p;
        private Html html1 = new Html();
        public Html getHtml1() {
            return html1;
        public void setHtml1(Html h) {
            this.html1 = h;
        private Head head1 = new Head();
        public Head getHead1() {
            return head1;
        public void setHead1(Head h) {
            this.head1 = h;
        private Link link1 = new Link();
        public Link getLink1() {
            return link1;
        public void setLink1(Link l) {
            this.link1 = l;
        private Body body1 = new Body();
        public Body getBody1() {
            return body1;
        public void setBody1(Body b) {
            this.body1 = b;
        private Form form1 = new Form();
        public Form getForm1() {
            return form1;
        public void setForm1(Form f) {
            this.form1 = f;
        private Label label1 = new Label();
        public Label getLabel1() {
            return label1;
        public void setLabel1(Label l) {
            this.label1 = l;
        private StaticText staticText1 = new StaticText();
        public StaticText getStaticText1() {
            return staticText1;
        public void setStaticText1(StaticText st) {
            this.staticText1 = st;
        private StaticText staticText2 = new StaticText();
        public StaticText getStaticText2() {
            return staticText2;
        public void setStaticText2(StaticText st) {
            this.staticText2 = st;
        private StaticText staticText3 = new StaticText();
        public StaticText getStaticText3() {
            return staticText3;
        public void setStaticText3(StaticText st) {
            this.staticText3 = st;
        private StaticText staticText4 = new StaticText();
        public StaticText getStaticText4() {
            return staticText4;
        public void setStaticText4(StaticText st) {
            this.staticText4 = st;
        private Calendar dtTarefa = new Calendar();
        public Calendar getDtTarefa() {
            return dtTarefa;
        public void setDtTarefa(Calendar c) {
            this.dtTarefa = c;
        private DropDown cmbSerie = new DropDown();
        public DropDown getCmbSerie() {
            return cmbSerie;
        public void setCmbSerie(DropDown dd) {
            this.cmbSerie = dd;
        private DropDown cmbDisciplina = new DropDown();
        public DropDown getCmbDisciplina() {
            return cmbDisciplina;
        public void setCmbDisciplina(DropDown dd) {
            this.cmbDisciplina = dd;
        private TextArea txtDesc = new TextArea();
        public TextArea getTxtDesc() {
            return txtDesc;
        public void setTxtDesc(TextArea ta) {
            this.txtDesc = ta;
        private Button btnNovo = new Button();
        public Button getBtnNovo() {
            return btnNovo;
        public void setBtnNovo(Button b) {
            this.btnNovo = b;
        private Button btnEditar = new Button();
        public Button getBtnEditar() {
            return btnEditar;
        public void setBtnEditar(Button b) {
            this.btnEditar = b;
        private Button btnAtualizar = new Button();
        public Button getBtnAtualizar() {
            return btnAtualizar;
        public void setBtnAtualizar(Button b) {
            this.btnAtualizar = b;
        private Button btnCancelar = new Button();
        public Button getBtnCancelar() {
            return btnCancelar;
        public void setBtnCancelar(Button b) {
            this.btnCancelar = b;
        private CachedRowSetDataProvider disciplinaDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getDisciplinaDataProvider() {
            return disciplinaDataProvider;
        public void setDisciplinaDataProvider(CachedRowSetDataProvider crsdp) {
            this.disciplinaDataProvider = crsdp;
        private IntegerConverter cmbDisciplinaConverter = new IntegerConverter();
        public IntegerConverter getCmbDisciplinaConverter() {
            return cmbDisciplinaConverter;
        public void setCmbDisciplinaConverter(IntegerConverter ic) {
            this.cmbDisciplinaConverter = ic;
        private CachedRowSetDataProvider serieDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getSerieDataProvider() {
            return serieDataProvider;
        public void setSerieDataProvider(CachedRowSetDataProvider crsdp) {
            this.serieDataProvider = crsdp;
        private IntegerConverter cmbSerieConverter = new IntegerConverter();
        public IntegerConverter getCmbSerieConverter() {
            return cmbSerieConverter;
        public void setCmbSerieConverter(IntegerConverter ic) {
            this.cmbSerieConverter = ic;
        private IntegerConverter integerConverter2 = new IntegerConverter();
        public IntegerConverter getIntegerConverter2() {
            return integerConverter2;
        public void setIntegerConverter2(IntegerConverter ic) {
            this.integerConverter2 = ic;
        private CachedRowSetDataProvider tarefaDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getTarefaDataProvider() {
            return tarefaDataProvider;
        public void setTarefaDataProvider(CachedRowSetDataProvider crsdp) {
            this.tarefaDataProvider = crsdp;
        private MessageGroup messageGroup1 = new MessageGroup();
        public MessageGroup getMessageGroup1() {
            return messageGroup1;
        public void setMessageGroup1(MessageGroup mg) {
            this.messageGroup1 = mg;
        private IntegerConverter integerConverter1 = new IntegerConverter();
        public IntegerConverter getIntegerConverter1() {
            return integerConverter1;
        public void setIntegerConverter1(IntegerConverter ic) {
            this.integerConverter1 = ic;
        private HiddenField op = new HiddenField();
        public HiddenField getOp() {
            return op;
        public void setOp(HiddenField hf) {
            this.op = hf;
        private HiddenField id = new HiddenField();
        public HiddenField getId() {
            return id;
        public void setId(HiddenField hf) {
            this.id = hf;
        private Table table1 = new Table();
        public Table getTable1() {
            return table1;
        public void setTable1(Table t) {
            this.table1 = t;
        private TableRowGroup tableRowGroup1 = new TableRowGroup();
        public TableRowGroup getTableRowGroup1() {
            return tableRowGroup1;
        public void setTableRowGroup1(TableRowGroup trg) {
            this.tableRowGroup1 = trg;
        private CachedRowSetDataProvider tarefaDataProvider1 = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getTarefaDataProvider1() {
            return tarefaDataProvider1;
        public void setTarefaDataProvider1(CachedRowSetDataProvider crsdp) {
            this.tarefaDataProvider1 = crsdp;
        private TableColumn tableColumn1 = new TableColumn();
        public TableColumn getTableColumn1() {
            return tableColumn1;
        public void setTableColumn1(TableColumn tc) {
            this.tableColumn1 = tc;
        private TableColumn tableColumn2 = new TableColumn();
        public TableColumn getTableColumn2() {
            return tableColumn2;
        public void setTableColumn2(TableColumn tc) {
            this.tableColumn2 = tc;
        private StaticText staticText6 = new StaticText();
        public StaticText getStaticText6() {
            return staticText6;
        public void setStaticText6(StaticText st) {
            this.staticText6 = st;
        private TableColumn tableColumn5 = new TableColumn();
        public TableColumn getTableColumn5() {
            return tableColumn5;
        public void setTableColumn5(TableColumn tc) {
            this.tableColumn5 = tc;
        private StaticText staticText9 = new StaticText();
        public StaticText getStaticText9() {
            return staticText9;
        public void setStaticText9(StaticText st) {
            this.staticText9 = st;
        private TableColumn tableColumn6 = new TableColumn();
        public TableColumn getTableColumn6() {
            return tableColumn6;
        public void setTableColumn6(TableColumn tc) {
            this.tableColumn6 = tc;
        private StaticText staticText10 = new StaticText();
        public StaticText getStaticText10() {
            return staticText10;
        public void setStaticText10(StaticText st) {
            this.staticText10 = st;
        private TableColumn tableColumn7 = new TableColumn();
        public TableColumn getTableColumn7() {
            return tableColumn7;
        public void setTableColumn7(TableColumn tc) {
            this.tableColumn7 = tc;
        private StaticText staticText11 = new StaticText();
        public StaticText getStaticText11() {
            return staticText11;
        public void setStaticText11(StaticText st) {
            this.staticText11 = st;
        private Button button1 = new Button();
        public Button getButton1() {
            return button1;
        public void setButton1(Button b) {
            this.button1 = b;
        private TableColumn tableColumn8 = new TableColumn();
        public TableColumn getTableColumn8() {
            return tableColumn8;
        public void setTableColumn8(TableColumn tc) {
            this.tableColumn8 = tc;
        private Button button2 = new Button();
        public Button getButton2() {
            return button2;
        public void setButton2(Button b) {
            this.button2 = b;
        // </editor-fold>
         * <p>Construct a new Page bean instance.</p>
        public tarefa() {
         * <p>Return a reference to the scoped data bean.</p>
        protected SessionBean1 getSessionBean1() {
            return (SessionBean1)getBean("SessionBean1");
         * <p>Return a reference to the scoped data bean.</p>
        protected ApplicationBean1 getApplicationBean1() {
            return (ApplicationBean1)getBean("ApplicationBean1");
         * <p>Return a reference to the scoped data bean.</p>
        protected RequestBean1 getRequestBean1() {
            return (RequestBean1)getBean("RequestBean1");
         * <p>Callback method that is called whenever a page is navigated to,
         * either directly via a URL, or indirectly via page navigation.
         * Customize this method to acquire resources that will be needed
         * for event handlers and lifecycle methods, whether or not this
         * page is performing post back processing.</p>
         * <p>Note that, if the current request is a postback, the property
         * values of the components do <strong>not</strong> represent any
         * values submitted with this request.  Instead, they represent the
         * property values that were saved for this view when it was rendered.</p>
        public void init() {
            // Perform initializations inherited from our superclass
            super.init();
            // Perform application initialization that must complete
            // *before* managed components are initialized
            // TODO - add your own initialiation code here
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            // Initialize automatically managed components
            // *Note* - this logic should NOT be modified
            try {
                _init();
            } catch (Exception e) {
                log("tarefa Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Perform application initialization that must complete
            // *after* managed components are initialized
            // TODO - add your own initialization code here
            initialForm();
         * <p>Callback method that is called after the component tree has been
         * restored, but before any event processing takes place.  This method
         * will <strong>only</strong> be called on a postback request that
         * is processing a form submit.  Customize this method to allocate
         * resources that will be required in your event handlers.</p>
        public void preprocess() {
         * <p>Callback method that is called just before rendering takes place.
         * This method will <strong>only</strong> be called for the page that
         * will actually be rendered (and not, for example, on a page that
         * handled a postback and then navigated to a different page).  Customize
         * this method to allocate resources that will be required for rendering
         * this page.</p>
        public void prerender() {
         * <p>Callback method that is called after rendering is completed for
         * this request, if <code>init()</code> was called (regardless of whether
         * or not this was the page that was actually rendered).  Customize this
         * method to release resources acquired in the <code>init()</code>,
         * <code>preprocess()</code>, or <code>prerender()</code> methods (or
         * acquired during execution of an event handler).</p>
        public void destroy() {
            tarefaDataProvider1.close();
            tarefaDataProvider.close();
            serieDataProvider.close();
            disciplinaDataProvider.close();
         public void lockForm(){
            dtTarefa.setDisabled(true);
            cmbSerie.setDisabled(true);
            cmbDisciplina.setDisabled(true);
            txtDesc.setDisabled(true);       
        public void unlockForm(){
            dtTarefa.setDisabled(false);
            cmbSerie.setDisabled(false);
            cmbDisciplina.setDisabled(false);
            txtDesc.setDisabled(false);    
        public void initialForm(){
            lockForm();
            java.util.Calendar cal = new GregorianCalendar(2006,1,1);
            Date dt = new Date();
            dt.setTime(cal.getTimeInMillis());
            dtTarefa.setMinDate(dt);
            btnNovo.setDisabled(false);
            btnEditar.setDisabled(true);
            btnAtualizar.setDisabled(true);
            btnCancelar.setDisabled(true);     
        public void novoTarefa(){
            unlockForm();
            btnAtualizar.setDisabled(false);
            btnNovo.setDisabled(true);
            btnEditar.setDisabled(true);
            btnCancelar.setDisabled(false);               
        public String button1_action() {
            try{
                RowKey rk = tableRowGroup1.getRowKey();
                if(rk!=null){
                    tarefaDataProvider.removeRow(rk);
                    tarefaDataProvider.commitChanges();
                    tarefaDataProvider.refresh();
            }catch(Exception e){
                log("Erro ao deletar", e);
                error(e.getMessage());
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao deletar");
            return null;
        public String btnNovo_action() {
            op.setText("1");  
            novaTarefa();
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao clicar em NOVO");
            return null;
         public void novaTarefa(){
            unlockForm();
            btnAtualizar.setDisabled(false);
            btnNovo.setDisabled(true);
            btnEditar.setDisabled(true);
            btnCancelar.setDisabled(false);       
        public String btnEditar_action() {
            unlockForm();
            op.setText("2");
            btnEditar.setDisabled(true);
            btnAtualizar.setDisabled(false);
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao clicar em NOVO");
            return null;
        public String button2_action() {
            try{
                RowKey rk = tableRowGroup1.getRowKey();
                if(rk!=null){
                    tarefaDataProvider.setCursorRow(rk);
                    id.setText(tarefaDataProvider.getValue("tarefa.id"));
                    dtTarefa.setValue(tarefaDataProvider.getValue("tarefa.data"));
                    cmbSerie.setSelected(tarefaDataProvider.getValue("tarefa.idserie"));
                    cmbDisciplina.setSelected(tarefaDataProvider.getValue("tarefa.iddisciplina"));
                    txtDesc.setText(tarefaDataProvider.getValue("tarefa.descricao"));
                    lockForm();
                    btnEditar.setDisabled(false);
                    btnNovo.setDisabled(true);
                    btnAtualizar.setDisabled(true);
            }catch(Exception e){
                log("Erro ao deletar", e);
                error(e.getMessage());
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao setar FORM");
            return null;
        public void novoRegistro(){
            Integer id=new Integer(0);
            try {
                RowKey rk = tarefaDataProvider.appendRow();
                tarefaDataProvider.setCursorRow(rk);
                tarefaDataProvider.setValue("tarefa.data",dtTarefa.getSelectedDate());
                tarefaDataProvider.setValue("tarefa.idserie",cmbSerie.getSelected());
                tarefaDataProvider.setValue("tarefa.iddisciplina",cmbDisciplina.getSelected());
                tarefaDataProvider.setValue("tarefa.descricao",txtDesc.getText());
                tarefaDataProvider.commitChanges();
                tarefaDataProvider.refresh();
            } catch (Exception ex) {
                log("Error Description", ex);
                error(ex.getMessage());
        public void atualizaRegistro(){
            try{
                RowKey rk = tarefaDataProvider.findFirst("tarefa.id",id.getText());
                tarefaDataProvider.setCursorRow(rk);
                tarefaDataProvider.setValue("tarefa.data",dtTarefa.getSelectedDate());
                tarefaDataProvider.setValue("tarefa.idserie",cmbSerie.getSelected());
                tarefaDataProvider.setValue("tarefa.iddisciplina",cmbDisciplina.getSelected());
                tarefaDataProvider.setValue("tarefa.descricao",txtDesc.getText());
                tarefaDataProvider.commitChanges();
                tarefaDataProvider.refresh();
            }catch(Exception ex){
                log("Error ao atualizar Noticia",ex);
                error(ex.getMessage());
        public String btnAtualizar_action() {
            if(op.get                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

Maybe you are looking for