PS suspendHistory() workaround

Hello,
CS SDK 1.5 are out, and while I really like them a huge lot, the Photoshop document's method suspendHistory() in ActionScript is still bugged... sigh!
Waiting for an official fix (please, please ), I've come up with a (maybe obvious) workaround, which involves HostObject (as described by Zak Nelson in this CookBook entry) and a little tweak. Basically I bounce from AS3 to JSX and back to AS3 writing my own suspendHistory function.
If someone else is having troubles as I've had, this is possibly a viable solution to adopt.
Any suggestion to make it better: obviously welcome.
In a Controller.as class I embed a Javascript file
[ Embed (source="jsx/Bounce.jsx" , mimeType=  "application/octet-stream" )]
private static var myScriptClass:Class;
Then I declare my own SuspendHistory function:
public function SuspendHistory(title:String, myFunction:String):void
   var  jsxInterface:HostObject = HostObject.getRoot(HostObject.extensions[0]);
   jsxInterface.eval( new myScriptClass ().toString());
   jsxInterface.init( this );
   jsxInterface.Bounce(title,myFunction);
where title is the only History tag that will appear in the history states list, and myFunction is... the function that I'd like to call.
On the JSX side, I've a Bounce.jsx file
var asInterface = {};
function init(wrapper)
   asInterface = wrapper;
function Bounce(title, myFunction)
   var foo = "asInterface." + myFunction;
   app.activeDocument.suspendHistory (title, foo)
The Bounce function takes the very same two parameters and bounces them back to ActionScript, calling the requested function wrapped inside a (natural working) ExtendScript suspendHistory call.
Using it in the AS3 class is straightforward, and you can even forget that there's some JSX action behind the scenes:
public function run():void
   SuspendHistory("Stuff Happening", "myASFunction()");
public function myASFunction():void
   app.activeDocument.activeLayer.duplicate();
   app.activeDocument.activeLayer.duplicate();  // really fancy stuff...
The nice part is that the function called from within suspendHistory can have parameters as well (obviously, uh)
public function run():void
   var loops:uint = 5
   SuspendHistory("Stuff Happening", "myASFunction("+loops+")");
public function myASFunction(loops:uint)
   for (var i:uint = 0; i<loops; i++)
      app.activeDocument.activeLayer.duplicate();
even though to split with quotes the function code to add the parameter isn't that elegant... but as long as it works, I'm happy - and it's better than nothing.
Cheers,
Davide
Nevertheless a fix in the CSAW libraries would be better

Forgot to mention you still have to have CS5 installed on your non-compliant laptop.  Wouldn't it be funny if this is a PS bug requiring a toggled bit to be set in order to render in 3D?

Similar Messages

  • SuspendHistory breaks activeHistoryState

    Hi,
    I've found that when you try to get the activeHistoryState after a suspendHistory call, you get the wrong one, namely the previous - e.g.
    var doc = app.activeDocument;
    $.writeln(doc.activeHistoryState); // [HistoryState DemoFile.jpg]
    doc.suspendHistory ("TEST", "doc.activeLayer.name = 'Something'; doc.activeLayer.name = 'SomethingElse';");
    $.writeln(doc.activeHistoryState); // [HistoryState DemoFile.jpg]
    // shouldn't be [HistoryState TEST] ?
    Why is it this way? Any workaround?
    I've also tried using doc.historyStates.getByName('TEST'); but fires an error - it seems like the state hasn't been created.
    Any help is really appreciated, thank you!
    Davide Barranca
    www.davidebarranca.com
    www.cs-extensions.com

    FYI,
    Michel Mariani suggested this workaround:
    var doc = app.activeDocument; 
    $.writeln(doc.activeHistoryState); // [HistoryState DemoFile.jpg]
    doc.suspendHistory ("TEST", "doc.activeLayer.name = 'Something'; doc.activeLayer.name = 'SomethingElse';");
    app.refresh();
    $.writeln(doc.activeHistoryState); // [HistoryState TEST] 
    It adds the usual, unwanted delay app.refresh adds, but at least the history state is the right one. Thanks Michel!
    Davide Barranca
    www.davidebarranca.com
    www.cs-extensions.com

  • [PS] AS3 suspendHistory() bug?

    Hello,
    I can be wrong (and that's a real possibility ), but there's something bizarre happening with CS SDK and the Photoshop suspendHistory() method working in ActionScript.
    According to the API documentation, the parameters are:
    historyString:String (String)The string to use for the history state.
    javaScriptString:String — (String) A string of JavaScript code to execute during the suspension of history.
    Currently I'm constantly getting this "Error: General Photoshop error occurred. This functionality may not be available in this version of Photoshop"
    An excerpt of the code is as follows:
    app.activeDocument.suspendHistory("Private stuff!", "app.activeDocument.duplicate()")
    The Javascript string should be ok....
    I would have liked to have an ActionScript:String instead (it'll be quite annoying to step in and out, AS3 and JS)... so just to try, I've substituted it with "var myDoc:Document = app.activeDocument.duplicate()" with no luck.
    Could someone else try to test this method, please?
    Thanks in advance,
    Davide

    The workaround I've found is to bounce from AS3 to JS to AS3.
    My AS3 function calls a JS function within an embedded jsx (like in Zak's cookbook); this one contains a suspendHistory() method which in turn, calls another function back in the AS3 code.
    Not ideal, but doable.
    David, should I add the suspendHistory bug in the "CS SDK bugs" topic?
    Thanks,
    Davide

  • Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Remove the extensions, redownload Safari, reload the extensions.
    http://www.apple.com/safari/download/
    And if you really want a better experience, use Firefox, tons more choices and possibilities there.
    Firefox's "NoScript" will block the Trojan going around on websites. Best web security you can get.
    https://addons.mozilla.org/en-US/firefox/addon/noscript/
    Ghostery, Ad Block Plus and thousands of add-ons more have originated on Firefox.

  • A workaround to get open documents in different Spaces to the allocated PS space

    A small workaround for Spaces CS5 Mac.
    If you have CS5 documents spread over different Spaces due to clicking them in the finder and want to get them all back in to the allocated PS Space, here's a workaround.
    You do need one doc open in the correct space I'm afraid for it to work. Create a new doc in there if you have to. I tend to leave one small doc open in the right Space all the time now.
    Go to the allocated PS space. Select the menu option "Consolidate all to tabs" from the  Window>Arrange menu.
    This will bring all the open docs from their spaces to the correct space as tabs.
    That might be enough for you but you can't drag adjustments layers and layers with alphas etc to another doc in Tab view, something I do all the time when I'm retouching 20-30 shots and I'm trying to match them.
    Hard to do that with tab view obviously.
    Next select "Float all in windows" and you'll have your docs viewable, side by side in the right space.
    If you assign a key command to those options, it becomes a quick tap 1-2 and you're done.
    As far as I can tell, if you want floating windows, and all your docs in the right place, and don't want to open your images from the PS open dialogue (who does when you have 6 windows of 50 images on your dual 30" monitor setup?) then this will do it.
    It's not great for all things but it's better than "It's all Apple's fault"

    there is certainly no built in way to do it. In fact Dock Spaces is the only program I've ever heard of that allows you to have different docks in different spaces. if it can't do it, it's impossible.

  • Free goods master for STO or workaround to meet this requirement

    Dear Gurus,
    I use IS-retail and the situation we faced is we have got a deal from our vendor that if we buy article A will get article B for free. So we set a free goods master using condition type NR00. It work fine in purchase order we order to our vendor however when we create STO to distirbute product from our DC to store, there are no free goods concept in STO.
    Does anyone have a solution for this issue or workaround for this?
    we would like to have a subitem (Free goods item)pop up automatically when create STO from DC to store for the main article.
    Is there a way to goods issue for sto with no cost for free goods article?
    Regards
    Mintoo

    Dear Varun,
    I already tried and found that In STO , The free goods indicator is disable (suppress) unlike in normal PO. There might be a reason for this.  Do you any workaround on this?
    Dear Venkat,
    is there a way to use free goods master instead of using BOM. Our SD told that they need to change configuration to serve the sales set???
    Best Reagrds
    Mintoo

  • In Pages 5.5.1 when I go to the Open menu I cannot get a preview of any of the files in the list using the spacebar, which I can do in every other application and finder. Is there a workaround?

    In all other applications and in the finder, if I select a document and press the spacebar I get a quickview preview of that file. It does not work in Pages when I choose Open and am given a list of files to select from. This was not the case in older versions of Pages. Is there a workaround, other than doing quickview in the Finder before going to Pages.

    On Yosemite, Pages documents that are in a package (folder) format are viewable with Quick Look in the Pages v5.5.1 file chooser. Pages documents that are in the Single File (compressed, renamed folder) format are viewable in diminished size with Quick Look. Other documents that can be opened in the version(s) of Pages on your Mac will also open properly in Quick Look from the file chooser.

  • Is there a workaround for Photoshop CS6 Histogram?

    I have noticed this and I am wondering if there is a more feasable workaround other than saving my work, closing the application and reopening the app.
    Here are the steps:
    Open a file (any file type compatible)
    Open the histogram window
    Open the layers window
    If one layer / Background unlock
    OR
    Open file with multiple layers (image, mask, or adjustment)
    In Layer window now deselect the background layer or all of the layers by clicking on the window below the layers (RIGHT under "Layer 0" in layer window)
    The histogram changes to B&W histogram
    The only way to revert to the previous Color display is to close PS CS6 and reopen it. Then you are back to the full histogram.
    When editing multiple layers in files, or compositing, this is really an issue and slows down workflow.
    Is there another workflow? I have attempted a couple workarounds but none have worked other than restart.
    Any idea what is happening? or is anyone else running into this?
    Just "Not selecting" is not an option.

    Seems like that has happened for several versions.
    To get back to Colors without restarting photoshop cs6, you can go to Expanded View and choose Colors from the drop-down list.

  • Program error when opening or saving. Any fixes or workarounds?

    I've been having troubles with opening and saving files in Photoshop CC since upgrading to Yosemite. The problem usually occurs when the save or open command is part of an action. I have the latest updates of both photoshop and Yosemite. It sounds like it's a known bug but I'd really like a solution or a workaround. Any suggestions?

    Any other suggestions? As I stated in my original post, I have the most updated version of both photoshop and Yosemite. It was the first thing I checked.

  • IDVD 08 audio/video sync drift toward end of DVD movie - fix/workaround?

    Anyone know how I can fix this issue? It's driving me crazy.
    I've just spent a few evenings in iMovie 08, editing together the video of my son's birth. All looked & amazingly good in iMovie. The "Large" .m4v file output by iMovie - Shared with the Media Browser - plays perfectly in Quicktime too.
    However, after adding that shared movie to iDVD 08, and burning a DVD, I noticed that the audio sync drifts toward the end of the Movie when plated back. At the start of the DVD all seems well, but by the end of the ~1hr 20 minute movie the audio is unbearably out of sync with the video. Completely unwatchable.
    After a little Googling I came across some reports that iDVD might not deal well with video that's been recorded with 12-bit audio. I've confirmed that my camcorder is (was!) set to 12-bit rather than 16-bit (the default, I'm sure). So if that's the problem I'm hosed... it's not like I can get a retake on that footage
    Is there a reasonable workaround for this issue? I'm obviously unable to re-take the video (or the other 10 hours of DV video tape I've yet to use in an iMovie project). Ideally I'd like Apple to release a patch for this. Shouldn't it be possible for iDVD to account for audio that was originally recorded in 12-bit... even if it's just a checkbox you have to select to tip it off?
    Then again, perhaps this is totally unrelated to the 12-bit issue, and this is just a run of the mill bug?
    As I said... iMovie generates a MPEG4 video file of the Movie that looks/sounds perfect, so it seems this sync issue's being created somewhere in iDVD as it's rendering the audio/video to burn to the DVD...
    Thanks in advance.

    I've tried most of the options I can think of, and the audio sync drift issue continues on this ~1hr 12 minute iMovie/iDVD 08 project.
    A couple of promising ideas tried used QT Pro, to export the audio track from the iMovie generated MPEG-4 file - as a WAV file, resampling to 48kHz and 16-bit... then Adding this back to the video track in the MPEG-4 file (having deleted the original audio track). In another test I also tried the Add to Selection and Scale option. Oddly enough I think the Add to Selection and Scale attempt generated more sync issues than before in the final DVD movie... so I stuck with the MPEG-4 file containing the video track and the added, resampled at 48kHz & 16 bit, WAV audio track.
    This was saved as a self contained Movie file, producing a QT .mov file. I moved this .mov file into the iDVD projects directory structure so that it was avalable in iDVD's Media Browser. I then reworked the iDVD project to use this QT large.mov file, instead of the original iMovie large.m4v file.
    As a reminder... the original large.m4v file has the following properties:
    29.97 FPS H.264 Decoder, 960 x 540, Millions
    AAC, Stereo (L R), 44.100 kHz
    0:01:12:07.16 duration
    The resampled and saved QT MOV file has the following properties:
    29.97 FPS H.264 Decoder, 960 x 540, Millions
    16-bit Integer (Little Endian), Stereo, 48.000 kHz
    0:01:12:07.16 duration
    BOTH versions of this Movie file play flawlessly within QT Pro... there's no audio sync drift evident toward the end of the movie unless I use iDVD 08 to burn either movie file to a Physical DVD (or DVD Disk Image). In both cases the resultant DVD Movie exhibits significant audio sync drift as the ~1hr 12 minute movie progresses. The sync goes out by ~ <= 1 second based on a rough visual assessment.
    I've not yet tried to burn either the original iMovie produced MPEG-4 video file or my QT Pro tweaked audio track .MOV file version to a DVD on my PC...
    ... But I have used an application called Burn (referenced in this earlier/archived iDVD sync drift forum post: http://discussions.apple.com/thread.jspa?threadID=1332100 by user F Shippey - http://burn-osx.sourceforge.net/) to take the QT Pro tweaked .mov file version of the original MPEG-4 file and burn it to a DVD...
    Results:
    The Burn app burnt DVD plays with NO audio sync issues!... Even though it was generated from the same audio tweaked (48kHz/16-bit resampled) QT Pro .mov file.
    However, whenever I burn a DVD using iDVD 08 the audio sync gradually drifts. It matters not whether I use the original iMovie 08 generated MPEG-4 movie file, or the QT Pro version of that file with the resampled audio track (the same one that works fine with Burn).
    It sure looks to me like iDVD has a problem... Again, refer to http://discussions.apple.com/thread.jspa?threadID=1332100 for someone else who seems to have run into similar challenges.
    Am I overlooking something?
    Thanks in advance.

  • Syncing Voice Memos to iTunes - Workaround

    Not everyone can sync their voice memos to iTunes, and no one really knows why (or cares).  Here is a workaround.
    Part One - Email the Voice Memo to Yourself
    1. Select the voice memos application.
    2. Select the voice memos list (button in lower right hand corner).
    3. Highlight/Select the voice memo to send.
    4. Select the blue Share button (lower left corner).
    5. Select the gray Email button.
    6. Address the email to yourself and select the Send button (upper right hand corner).
    Part Two - Save the Voice Memo to Your Computer
    This part varies for everyone.  I am going to assume you know how to save files from your email to your computer.
    Part Three - Add the Voice Memo to iTunes
    1. Open iTunes.
    2. Select: File / Add File to Library.  Choose the voice memo you downloaded to your computer. Click Open.
    Note: the music file will be saved as an 'Unknown Album / Unknown Artist'.
    3. Right-click on the file, choose Get Info.  Choose the Options tab.
    4. Change the Media Kind to Voice Memo (the Media Kind should automatically add a check mark).  Click OK.
    5. Double-click to re-open the file.
    6. Right-click on the name, choose Get Info.  Choose the Info tab.
    Note: You now have a chance to re-name the file anything you want.
    7. Use the Name field to re-name your memo.
    Part Four - Add a Voice Memo Playlist.
    1. Select: File / New Smart Playlist...
    2. Click on Artist and choose Media Kind from the drop-down list.
    3. Click on Music and choose Voice Memo from the drop-down list. Click OK.
    You can now use Voice Memos and iTunes as promised in the Users Guide.

    UPDATE - Apparently large files cannot be mailed out.  So far I can verify that a 27 minute memo cannot be mailed.

  • Windows XP Pro SP1 Won't Install - Yes It Can Workaround : )

    Just posting this as a help for others...
    I'm doing this to get Windows XP Professional onto a 2006 MacBookPro. I've already swapped in a 320GB hard-drive and partitioned it with BootCamp assistant. You need to be connected to power and have a USB keyboard handy. I used an aluminium mac keyboard with mighty-mouse attached directly to it.
    So, following the Apple instructions to partition the hard-disk and install, everything went more or less okay. However once set-up and with XP running, the whole seamless process grinds to a halt because the SP1 version of XP can't 'see' the optical drive and other mac internals. To get around this you need to do a little bit more work but I can confirm I do now have XP working fine on my machine.
    So here's how the workaround went for me:
    1. Follow the apple Boot Camp Installation & Setup Guide instructions until you get to Step 3 on page 12. At this point you probably get stuck because Windows can't 'see' the DVD, it won't auto-run and you can't navigate to it in MyComputer.
    2. Eject the XP disk, exit windows and re-start back in OSX. In Safari go to the MS Downloads Centre and download "Windows XP Service Pack 2 Network Installation Package for IT Professional & Developers" to your downloads folder.
    3. Move the WindowsXP-KB835935-SP2-ENU.exe file you get to MyDocuments in your Administrator area on the BootCamp partition.
    4. Navigate to: www.windowsreference.com/general/error-there-is-not-enough-disk-space-when-inst alling-sp3/ and print off these instructions.
    4. Restart in XP and follow the tweak detailed above. This will stop your installation failing due to a false out of space warning. (On the MBP I needed to connect the USB and keyboard-connected mouse in order to get it to detect a right-click).
    5. Then run the .exe file transferred from Safari earlier. Everything should update to SP2 (not SP3 as the update file suggests).
    6. Shutdown and restart again in Windows. When it restarts just let it do its thing and don't sign up to any security updates or join any networks or anything - you do all this later. (During my install the machine got hung-up whilst shutting down - I just forced power off by holding down the power button and it restarted fine).
    7. Log on as administrator and insert the Leopard installation disk. Carry on from where you left off the BootCamp Installation instructions. Ignore the annoying pops and ding-dong noises and go make yourself a cup of tea until its finished.
    8. When you come back there may be a couple of 'wizard' windows holding up the final bit. Click continue here and should all finish tidily. Restart when you're ready.
    I'm not an IT guy so please don't ask me techie stuff. I just got lucky and got this working so am posting my experience. If it's helpful for you please just go do something nice for someone when you perhaps might not otherwise have done. I believe what goes around comes around. : )
    S

    Since your Powerbook connects flawlessly to the Airport Express, I too would assume you have a marginally defective wireless interface in your PC. See if you are allowed to buy a replacement wireless card, with the option to replace it if that fails to solve your problem.

  • LR 3 freeze when trying to import (with a workaround)

    Hi,
    Windows XP SP3
    Core i7 with 4 GB RAM (3 in use)
    I had mentioned this in the previous IMPORT FREEZE thread, but that thread go pretty long and convoluted so I thought I would isolate the particular problem that I (and many others) are having.
    Problem is that when hitting the IMPORT button (or doing a drag and drop, or using the menu to select IMPORT), the screen freezes. Most of the time the cursor arrow is frozen on the Import button. LR thinks that it is in Import mode but there is no UI. To get out of this frozen mode you just have to hit the escape key, and LR dismisses the (non-existent) Import screen and continue to function normally.
    Sometimes the Import screen is partially drawn. I think this happens if the Import mode had worked previously in this session (like it does right after a complete re-boot).
    The problem is that once this problem shows up, while you can get out of the frozen program (by hitting the esc key) there is no way to import files into LR without re-booting.
    Workaround:
    This morning I realized that since the problem seems to be with drawing the Import screen, that maybe Auto-Import would work, and at least I would have the import function back. So I tried it and it works perfectly. I just download to the HD using another method to get the files from the memory card to the HD, and then move the files to the watch folder (after you enable Auto-Import). Set the preview to minimal so the "import" can go as fast as it can.
    Hope this helps, and if Adobe or anyone else with this specific import problem has additional info, please post it hear. I know other people are having problems with the actual import, but let's keep those in a seperate thread (at least that is my suggestion).
    Thanks in advance.
    Michael Tapes

    First let me say I appreciate your 2cts worth.  I am learning more about this issue with every post.  That's the great thing about forums.  It brings the smart people with the passion for making life easier for others together, learning a bit more at the same time.
    Before I downloaded the trial version I checked the system requirements.  Lightroom is built for systems several years old.  Here are my PC specs:
    - Dell Studio 1737
    - Windows Vista Home Premium w/SP1
    - Intel Core 2 Duo CPU T6500 @ 2.10GHz
    - 6 GB RAM
    - ATI Mobility Radeon HD 3650
    - 64-bit Operating System
    This should be more than enough to run the most demanding Lightroom tasks.  Your thoughts?

  • WORKAROUND - Found a Way to Force iTunes Match to UPLOAD

    I wanted to let everyone know that after months of living with incorrect matches (mainly The Beatles in Mono), I've finally found a semi-easy workaround to force uploads.  I haven't found this anywhere else, but if someone else has documented it, I apologize.  I posted this onto one of the many threads regarding the issue quite some time ago (~ 6 months), but I wanted to make sure it was seen by as many as possible. (Sorry for the long post—skip anything you're not interested in! )
    MY THEORY
    The basis of this was noticing that there seemed to be discrete steps to the matching process (when adding via already-ripped FILES and not CD at least):
    You add the files to iTunes
    You can force a scan by right-clicking and selecting "Add to iCloud"
    iTunes scans the new files
    iTunes reports that it is sending the file data to Apple
    iTunes waits for a "Matched" or "No Match" response from Apple
    If the response is "No Match," then iTunes triggers the upload
    After observing this for some time, I concluded that if (edited) files could be imported that would give a definite "No Match" result, there may be time in-between steps 4 and 6 to replace the files with the real ones (which had been triggering a false match in the past).  To my delight, this worked.  Here's what I did:
    STEP-BY-STEP:
    Deleted existing files from iTunes/iCloud, but kept the files on the computer.  I then moved these to a different folder.
    Took existing files and converted them with dBpoweramp.  This will cost money but is well worth it if you are looking for a way to force an upload to iTunes Match. I converted them using the same AAC settings (this doesn't matter), but added the "reverse" DSP, which reverses the audio.  This has been enough to foil iTunes into not matching the track, while ensuring that each file will contain unique audio data.  This will be quick and painless, at least for the first time.  I did it this way because it will retain all of the tags AND length of the file.  iCloud will get the file length from this step, and will not change it afterward...so you probably want to use files of the same length as the real ones.
    Now I have a copy of the files with audio gibberish but still having correct metadata, etc.  I then put these files in my "Automatically Add to iTunes" folder.
    Right-clicked on these files and selected "Add to iCloud." If you use "Sort Album" like I do, you can change it before this step and it will upload into iCloud with the correct sort information.  If done afterward, it doesn't usually sort correctly on my iPhone.
    After iTunes displayed the message "Sending information to Apple" (don't remember the exact message), I pasted the original (correct) files and replaced my audio gibberish files.  It is important to note that the filenames must be the same, e.g. "01 Come Together.m4a" if a single-disc, or "1-01 Back in the USSR.m4a" if multidisc.  iTunes will also truncate the file name at 36 characters (I believe) so this will all need to be done beforehand.  I use various MP3tag actions that I'd be happy to share if anyone wants them.  If you are starting with a file that has already existed in your iTunes library, this will already be done (provided iTunes is managing the library).
    When Apple returns a "No Match" signal back to iTunes, it then begins to upload the files which I have just pasted.
    This has worked for me 100% if doing the upload one time.  In some rare cases, I may decide to EQ a file and then re-upload, or otherwise edit the file.  Or perhaps I have more than one version (original/remastered, or original mix/remix) that I want to coexist in my library.  In those cases, I have again utilized the dBpoweramp "VST Plug-in" DSP, where I use something like Freq Show to garble the audio.  It is necessary for the garbled audio to be unique each time for this to work.
    A FEW THINGS I HAVE LEARNED
    If you delete a file and wish to re-upload it, you can use the same files from step 2 (provided you still have them) and iTunes will recognize them as the files previously uploaded.  I am not sure how long this works, but your uploaded music remains in iCloud, though invisible, for some time — even if you selected "Delete from iCloud."
    iTunes/iCloud evidently does use metadata (at least Album) to help determine if you've already uploaded a song within the same album.  I ran into this when trying to test an EQ/level change I had made, and even though the audio content was completely different, iTunes would not upload or would flag as duplicate.  If I altered the Album field in any way it would proceed. Other tags can be kept the same. 
    If you do have mono content, it is trivial to use the dBpoweramp "Channel Mapper" DSP to remove one channel during the conversion from lossless to AAC.  The nice thing is, I encode with Nero AAC quality 0.65 (~250 kbps VBR) and this will reduce the file size significantly.  There is no real advantage to keeping both channels, since you're doing a lossy conversion anyway.  Sometimes the encoders (even very good ones) don't see the file as being mono, due to different artifacts and noise in the left and right channels. Or perhaps the mono tape was transfered with a stereo tape deck, etc.  Try it yourself and see if it makes a difference.  Also, iTunes will report the file as "mono" when you do "Get Info."  I keep the FLAC disc image/tracks in stereo so it will exactly match the CD, but only encode one channel to lossy.  If you know the source is mono for sure then there is no possible advantage to keeping both channels of a lossy conversion.  (If you're not sure if the source is mono, use your favorite DAW, e.g. Audacity, to invert the phase of one channel before combining left and right.  Once you do that, if all that is left is very low-level noise or other artifacts, then you know it is safe to encode as mono.)
    IF YOU CARE ABOUT MASTERING
    It is also worth noting that if you care about what mastering you have in your iTunes library, there is no other way I know of to guarantee you have the correct version in your iCloud library except to upload it.  I found this out the hard way: I had a retail CD version of Paul McCartney's "RAM" album that was recently remastered.  I put the CD in, added to my library, and iTunes Match quickly returned with "Matched" for all tracks.  Some time later I was listening with headphones and noticed that some tracks had hardly any hiss at all, whereas others had a good amount of it.  Since "RAM" is a rather hissy album, I investigated it against the CD and finally found that many of the tracks were being matched to other versions of the song (either from the earlier CD version or compilations with different mastering).  So most of the tracks were hit with heavy noise reduction for the iCloud version.  I had to follow this upload procedure to be sure that I got the right version.  Purchasing the item(s) from the iTunes store would work also, but I had already paid $100 for the deluxe box set.  This same problem occured with the Bob Dylan mono box.  I was surprised to find that iTunes actually matched my mono versions to mono versions, and continued listening until one day the stereo version played on a certain track instead of the mono.  So, even if the iTunes store has the mix/mastering that you are wanting to add to iCloud, the only sure way is to upload it (or purchase it from iTunes in the first place.)  If given the choice going forward I would choose the latter, since I am not hung up on physical media and cannot tell a 256K iTunes store encode apart from a FLAC file in a double blind test (almost nobody can).
    This has been bothering me for months.  I'm really happy to be able to play my correct files on all my devices!  For those of us who have unique versions or masterings of albums we prefer, this should be a workaround until Apple decides to give us a "force upload" option.  I have tested this on Windows 7 primarily.  Should work on any OS.
    Hope everyone finds this useful!
    Nick

    I wanted to first thank you for this, as this is the only workaround literature that seems to be floating around out there.  With that said, I know it is a big ask, but is there any way that you could create a video showing step by step how to do what you do?  I have several tracks that are stuck in waiting mode, and if left in itunes, will never upload or match...they only cause the upload process to hang up and restart.  I've tried leaving it for days...I've tried converting the files, signing in and out of itunes (and itunes match), updating itunes match, and I tried your technique...unfortunately to no avail.  Perhaps I didn't do your technique correctly.  I used audacity to reverse the audio.
    ANY help would be GREATLY APPRECIATED!!!
    Thanks

  • ORACLE treats empty Strings as NULL, Any workaround?

    Hi,
    ORACLE treats empty Strings as NULL.
    I am writing, rather modifying Java code to make it work with both SQLServer and Oracle. Since our code is already working for SQLServer, now I have the problem in porting to Oracle wherever I have empty strings. I used to insert empty strings into coulumns in SQLServers, the same SQLs give errors in SQL Server.
    Any workaround on the DB end or in JDBC for this?
    Thanks in advance,
    Suresh
    [email protected]

    jschell wrote:
    nichele wrote:
    jwenting wrote:
    If NULL really is different in your context from an empty string you're going to have to define some sequence of characters as indicating an empty string.yes, this is what i need to implement.Sounds like a flawed design then.
    I'm wondering what's the best approach in order to avoid to change all my application isolating this behavior somewhere (wrapping the jdbc driver for instance).That doesn't make much sense to me. You should already have a database layer. You change the database layer. If you don't have a database layer then that means you have another design flaw. And in that case I would really not be the one that needs to maintain that code base.I thought a bit about the value of your answer...but i didn't find it ....sorry but i don't like who replies on forum just to say bad design/bad choice etc...if you have any kind of suggestion you are welcome, otherwise you can spend your time in doing something else instead of reply to this thread.

Maybe you are looking for