Saving a .rgb (SGI format) file in Extendscript

Hello everyone,
    I'm writing a script in javascript that saves out some .rgb files.  I tried using the
script listener by selecting Save As in Photoshop.
However, the resulting script would only save .sgi files:
var idsave = charIDToTypeID( "save" );
    var desc17 = new ActionDescriptor();
    var idAs = charIDToTypeID( "As  " );
    desc17.putString( idAs, "SGI" );
    var idIn = charIDToTypeID( "In  " );
    desc17.putPath( idIn, new File( "Y:\\lak_temp\\output\\theCoolest.rgb" ) );
    var idCpy = charIDToTypeID( "Cpy " );
    desc17.putBoolean( idCpy, true );
executeAction( idsave, desc17, DialogModes.NO );
Is there an extra step to tell Photoshop that it needs to use a sub-type of the SGI format?
I have a plugin from telegraphics that lets me save in the .rgb format.  I imagine this is why I'm having a hard time with it.
I also tried using the saveAs() function as mentioned in the documentation,
but I've had no luck with it on this format:
var RGBOptions = new SGIRGBSaveOptions();
RGBOptions.alphaChannels = false;
RGBOptions.spotColors = false;
app.activeDocument.saveAs(new File( "Y:\\lak_temp\\output\\theCoolest.rgb" ), RGBOptions , false);
I did notice that the save options object didn't pop up any attributes in the Extendscript editor.
I thought this was wierd, since it popped up suggestions when I use the JPEGSaveOptions object.
I'd appreciate any help.  I'd also be willing to try a javascript library that will convert files to the .rgb format.  I just haven't found one.
Thanks!

Hello everyone,
    I'm writing a script in javascript that saves out some .rgb files.  I tried using the
script listener by selecting Save As in Photoshop.
However, the resulting script would only save .sgi files:
var idsave = charIDToTypeID( "save" );
    var desc17 = new ActionDescriptor();
    var idAs = charIDToTypeID( "As  " );
    desc17.putString( idAs, "SGI" );
    var idIn = charIDToTypeID( "In  " );
    desc17.putPath( idIn, new File( "Y:\\lak_temp\\output\\theCoolest.rgb" ) );
    var idCpy = charIDToTypeID( "Cpy " );
    desc17.putBoolean( idCpy, true );
executeAction( idsave, desc17, DialogModes.NO );
Is there an extra step to tell Photoshop that it needs to use a sub-type of the SGI format?
I have a plugin from telegraphics that lets me save in the .rgb format.  I imagine this is why I'm having a hard time with it.
I also tried using the saveAs() function as mentioned in the documentation,
but I've had no luck with it on this format:
var RGBOptions = new SGIRGBSaveOptions();
RGBOptions.alphaChannels = false;
RGBOptions.spotColors = false;
app.activeDocument.saveAs(new File( "Y:\\lak_temp\\output\\theCoolest.rgb" ), RGBOptions , false);
I did notice that the save options object didn't pop up any attributes in the Extendscript editor.
I thought this was wierd, since it popped up suggestions when I use the JPEGSaveOptions object.
I'd appreciate any help.  I'd also be willing to try a javascript library that will convert files to the .rgb format.  I just haven't found one.
Thanks!

Similar Messages

  • I am facing issue when opening flash files in Flash CC. (error:- This file was created with a later release of Flash Professional and might contain new features that would be lost when saved in the current format.)

    I am facing issue when opening flash files in Flash CC. (error:- This file was created with a later release of Flash Professional and might contain new features that would be lost when saved in the current format.)

    Wow. Okay...
    I'll let the real veterans in this forum tackle your issues one after the other. But, I can tell you, all will be well.
    My only comment would be re: your computer specs:
    BJReis wrote:
    .  This may be due to somewhat older equipment:
    GHz Intel Core Duo MacBook Pro with a 4GB memory computer with Ddr3 running OSX 10.8.4
    To be completely honest, FCPX is a RAM hog. It just is. But, RAM is relatively cheap, and the pay-off is good.
    4GB is right on the edge, IMHO. 16G is ideal.
    I wish you luck, hang in there, and standby for more help.

  • Saving a formatted file for S1000D

    Hi,
    I have had some success creating a document using the S1000D download with Framemaker 9. I can save it as a .sgm file and get it back. Problem is I want to format the contents in Framemaker. SGML doesn't include formatting so I tried to save it as a framemaker 9 file and it bombed out completely and closed Framemaker. This happens even if I start a new S1000D document and try to save it as a .fm file immediately without changing anything. Has anyone else had this problem or am I doing something stupid?
    Another Question: Has Adobe released a more up to date version of S1000D than 2.2? They're on 4.0.1 now.

    I was hoping this wouldn't open another can of worms. I am indeed using the beta application pack for FM 7.2.
    The strangest thing is that I've just tried it again and the sgm file saved successfully as a fm9 file and came back into framemaker with the formatting entact. I tried this several times earlier and it bombed FM completely. It might be because I didn't have any images this time. There are XSLT warnings when opening the sgm file though.
    This is all moot if the SGML will be invalid.
    To answer your question, I am trying to output to SGML by starting a new document using the S1000D2.21descript structured application. I then "Save As", choosing an sgm extension from the "Save as Type" dropdown. I can then open this file, special paste text from Word and save. Later, I open the .sgm file, save as a .fm file and format it.
    What are the options if I can't use the beta application?
    Thanks for your response. Let me know if you need any more details.

  • In CS5, saving a tiff, the jpg compression is greyed out, why? No layers. It's RGB, 8 bit file.

    in CS5, saving a tiff, the jpg compression is greyed out, why? No layers. It's RGB, 8 bit file.

    Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Problems with files saving in a quicktime format

    I am having a problem with files from several programs in my adobe CS6 Master Collection saving in a quicktime format.  I am running a Windows7 PC.  It appears to be happening in both photoshop and fireworks from what I can tell.  Does anybody have any idea why this is doing it and how to fix it?

    Fireworks doesn't save or export in Quicktime format.

  • I saved my Form Central spreadsheet file once as a excel file but it will not allow me to save it a second time as an excel file.  It says that I cannot complete this action because the file me be open in another application, but it is not open in another

    I saved my Form Central spreadsheet file once as a excel file but Forms Central will not allow me to save the file a second time as an excel file.  I am informed that I cannot complete this action because the file me be open in another application, but it is not open in another application. What is the problem, and how do I solve the problem.  Thank you. Jeff

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • I am using Photoshop Elements 11.  Do all .jpg formatted file have to be retangular in shape?  I want to create an oval .jpg picture to insert into a book.  Haven't been able to do so.  It would work if I could make the area outside the oval completely tr

    I am using Photoshop Elements 11.  Do all .jpg formatted file have to be retangular in shape?  I want to create an oval .jpg picture to insert into a book.  Haven't been able to do so.  It would work if I could make the area outside the oval completely transparent.  Can anyone help me here?

    JPG does not support transparency, so even if you create an oval with transparent background, the saved JPG will have white background. Instead, save it as a PNG, TIFF, or GIF which preserve the transparency.
    Here is one of many ways to create your oval:
    Create a new file the approximate size of the oval. Add the oval with the Custom Shape Ellipse tool, and simplify the shape layer.
    In the Layers Palette, Ctrl-click the oval to select it and copy the selection to the clipboard (Edit > Copy).
    Then do File > New from Clipboard. This creates the oval with transparent background cropped to the oval size.
    Then save it as one of the file types that support transparency (and also supported by the application where you are sending the picture to).
    Note:  Is is not even necessary to do step 2. That is only if some reason you want the oval to be tightly cropped. It is sufficient to delete the Background layer in step 1 (or turn off its visibility) and save the file. The oval will appear correctly in the book with either version.

  • I edited a .nef file in Camera Raw and PSE 11 saved it as a .xmp file.  I cannot open it now.

    I edited a .nef file in Camera Raw and PSE 11 saved it as a .xmp file.  I cannot open it now.
    I am not sure if this is an issue but Windows does not recognize the .xmp file and give it an icon with the photo's picture.  On a related note, when I edited some .nef files and Windows saved it as .dng file, it too, like the .xmp file, Windows does not recognize the .dng file and give it an icon with the photo's picture.
    Do I need to download something to create this icon?

    PSE didn't save your file as an .xmp file. The .xmp file is not the image--that's still the .nef. The xmp file is what adobe calls a 'sidecar' file, just a record of the settings you used in the raw converter. As long as it's in the same place as the image, when you open the nef in ACR again, it will open where you left off, with the settings you chose.
    If you want to save as, you have two choices:
    1. Click the Open button in the raw converter window and save in the image format of your choice.
    2. Use the Save button in the raw converter to create a separate DNG file, which still must be opened in the raw converter and converted to an image format for use in other programs.

  • CS5 Suddenly Stops Saving and Opening PNG & GIF Files

    CS5, windoze 7, 64 bit.
    Inexplicably, CS5 just stops working with PNG & GIF format files.
    Fine, this morning; but not after lunch! Indigestion?
    Bridge says it's missing a/the java plug-in. Huh? Java is up to
    date at OS level.
    Very puzzling. Anyone got a fix for this?

    Kind of you to reply and offer assistance - thanks.
    First, I'm inquiring for my wife. I.e. I'm not the user. She's not all that comfortable with using Forums.
    I use Photo Impact - now part of Corel, as I understand it.
    She says she can't open or save those formats, as she used to be able to. But she can open PNGs
    in Illustrator.
    The bridge error message is generated on clicking bridge, when no other task is running:
    Adobe Photshop CS5 Extended
    Could not complete your request because
    Photoshop was unable to find the javascript
    plug-in.
    The mini bridge also gives an error message when clicked on, with no other task is running:
    Adobe Photshop CS5 Extended
    Cannot complete command because the
    extension could not be loaded.
    She reports that a lot of Save As options have disappeared. If this was Photoimpact, I'd be
    checking the FIO folder for the necessary fio files, but I don't know how PS manages the
    way in which various file formats become interchangeable for saving/opening. What that
    has to do with bridge, I know not. I don't know the first thing about PS.
    That said, chronologically, the problem seems to have occurred after the installation of
    a number of pre-sets. That makes me suspicious of them. Or rather, the installation
    process that they involved. But I don't know for sure, nor do I know how that installation
    of presets process might be reversed, to check if that caused the problem. (see below)
    Oh, she has executed an update, but that didn't fix the problem either.
    If there's no easy way to achieve a remedy to the problem, I'm contemplating doing a system
    restore. She's presently moving (backing-up) those pre-sets before any roll-back is attempted.

  • Error 7 produced when saving to a spread sheet file using a compact rio

    Hi
    Im having a little difficultly saving to a spread sheet file using a compact rio. I bundled the data from a NI 9215 with a timer and stuck it into an x-y graph and that works fine as it goes round in shift registers. But then I passed the data out of my while loop unbundled it, turned it into a 2d array and tried to write it into a spread sheet file using the appropriate i/o vi provided by labview 8.2. I have hooked up all the requirements like format, and file path. But it keeps returning error 7 and says that my file path is incorrect. I’ve tried using a constant file path, ive tried creating the file before running the program, ive tried just writing the file straight to a disk in this case h:\test.asc but every time it comes back with error 7. I then went to a lab downstairs to see how they did it and the method I’m using it works down there but is exactly the same as mine upstairs. I’m a little confused by this one.
    Any pointers would be much appreciated.
    Dan

    Hi
    I apologise I didn’t specify I was only using a NI cRIO-9004 not realising you could get ones that had a USB port. I thought mine would behave in the same way as a DAQ device and write the file back onto the main computer hard drive. Is this not what happens if not how do you make it do that. The computer is a networked system with its own C:\ harddrive, but my personal space is on H:\ which must be like a pretend hard drive, or alternatively can you make the cRIO write it to a memory stick within a USB port of the programming PC itself. Or can you write onto memory of cRIO but then how do you download the data?
    Also I apologise that I posted the message twice only did cos I thought it might be in the wrong forum.
    Thanks
    Dan

  • "The rasterized image exceeded the maximum bounds for saving to the PNG format"

    Hi everyone, I'm using Illustrator CS4 and encountering the following problem:
    I made a level map in illustrator that exceeds 10000x10000 pixels. When I try to export the image as a PNG, I get the error "Could not complete this operation. The rasterized image exceeded the maximum bounds for saving to the PNG format". I tried saving in JPG and others as well, but got similar errors.
    How can I get around this?

    Here is an interesting discussion: http://bytes.com/topic/php/answers/735556-png-maximum-dimensions
    -- although the dimensions there are way larger than your paltry 10K x 10K. It appearts not to be a limitation of the PNG format, but solely from the software used.
    Here's a question. What on earth do you think you need 10K x 10K PNG files for?

  • How can we give the Data Format (File Type ) in Runtime

    Hi all,
    How can we give the Data Format (File Type ) in Runtime for the following method,
    cl_gui_frontend_services=>gui_download.
    Thanks in advance
    Sri

    There is a filetype parameter which you can set
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
    *    BIN_FILESIZE              =
        filename                  =
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      changing
        data_tab                  =
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24

  • Auto generated types and ps1xml formatting files

    Hello,
    I'm using New-WebServiceProxy to work with a web service... when I call methods of the web service powershell auto generates types, for example, things like "Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1_webservices_awebservicepage_asmx.TheMethodReturnObjectType"
    1. should I just use that type name in my ps1xml formatting file? I'm wondering if that will be fragile... seems fragile like 'webServiceProxy1' for example, what if there is some scenario it uses '2'? Not sure if I can count on that being consistent?
    2. I started creating custom objects and adding my own type name to them so that type name could be used in the ps1xml file. This works fine. However so far it was for web service methods that returned single instance results.. now I hit a point where I'm
    calling a web service method that will return a collection... so I'm wondering if it would be better to just use the auto generated type name  in the ps1xml or, as I would need to do in this case, actually enter a foreach loop to create a new custom object
    for every object in the returned collection? In other words, for the web service methods I've used so far for this, I simply created my custom object and write-output... for the case of the collection, I would be new-object'ing and write-output'ing within
    that foreach loop.. wondering about performance issues, or if it's just overkill when I could just put that auto generated type name in the ps1xml file and be done with it... 
    not sure if I've asked that very clearly...
    essentially, I'm wondering if it's overkill (from a resource usage perspective) to be creating these custom objects in the case of when there will be a collection, with potentially hundreds of items, when the only reason I'm doing it is for display purposes...
    if it were not an autogenerated type I would simply use the type name in the ps1xml, I'm just not sure if I can do that in this case as I don't know if that typename will *always* be the same?
    any input would be appreciated, thanks

    Hi DJC,
    I haven't rexperienced this, however, to create a .ps1xml file, these examples may be helpful for you:
    Creating a module for powershell with a format file
    discutils / utils / DiscUtils.PowerShell / DiscUtils.Format.ps1xml
    about_Format.ps1xml
    I hope this helps.

  • Colum names mapping from formate file is not working

    Hi All,
    i tried to import data from text file using BULK INSERT format file option, am able to load the data from file to table but when i change the column name order in the input file it is not inserting according to change column order 
    BULK INSERT monsanto55_Steelwedge_monsanto_manualBuild_filters.dbo.bulk_test
       FROM '\\192.168.97.23\poc\bulk.txt'
       WITH( FORMATFILE = '\\192.168.97.23\poc\build.fmt',FIRSTROW = 2)
    TABLE COLUMS: P_Id,LastName,FirstName,age,Address,City,no
    Format file is :
    10.0
    7
    1       SQLCHAR             0       12      "\t"     1     P_Id                   ""
    2       SQLCHAR             0       255     "\t"     2     LastName               SQL_Latin1_General_CP1_CI_AS
    3       SQLCHAR             0       255     "\t"     3     FirstName              SQL_Latin1_General_CP1_CI_AS
    4       SQLCHAR             0       12      "\t"     4     age                    ""
    5       SQLCHAR             0       255     "\t"     5     Address                SQL_Latin1_General_CP1_CI_AS
    6       SQLCHAR             0       255     "\t"     6     City                   SQL_Latin1_General_CP1_CI_AS
    7       SQLCHAR             0       12      "\r\n"   7     no                     ""
    input data file:
    P_Id FirstNameLastName
    ageAddress Cityno
    1 first
    one 11
    sanathnagar HYD 5
    2 second
    two 12
    xyz abc
    0
    3 third
    three 20
    ameerpet SEC
    30
    according to mapping the data in table must be like:
    P_Id,LastName,FirstName,age,Address,City,no
    1 one first 11 sanathnagar HYD 5
    2 two second 12 xyz abc 0
    3 third three 20 ameerpet SEC 30
    but it inserting same as input file format so first name and last name are miss matching
    please let me know if you have any idea.
    Thanks,

    Hi All,
    i tried to import data from text file using BULK INSERT format file option, am able to load the data from file to table but when i change the column name order in the input file it is not inserting according to change column order 
    BULK INSERT monsanto55_Steelwedge_monsanto_manualBuild_filters.dbo.bulk_test
       FROM '\\192.168.97.23\poc\bulk.txt'
       WITH( FORMATFILE = '\\192.168.97.23\poc\build.fmt',FIRSTROW = 2)
    TABLE COLUMS: P_Id,LastName,FirstName,age,Address,City,no
    Format file is :
    10.0
    7
    1       SQLCHAR             0       12      "\t"     1     P_Id                   ""
    2       SQLCHAR             0       255     "\t"     2     LastName               SQL_Latin1_General_CP1_CI_AS
    3       SQLCHAR             0       255     "\t"     3     FirstName              SQL_Latin1_General_CP1_CI_AS
    4       SQLCHAR             0       12      "\t"     4     age                    ""
    5       SQLCHAR             0       255     "\t"     5     Address                SQL_Latin1_General_CP1_CI_AS
    6       SQLCHAR             0       255     "\t"     6     City                   SQL_Latin1_General_CP1_CI_AS
    7       SQLCHAR             0       12      "\r\n"   7     no                     ""
    input data file:
    P_Id FirstNameLastName
    ageAddress Cityno
    1 first
    one 11
    sanathnagar HYD 5
    2 second
    two 12
    xyz abc
    0
    3 third
    three 20
    ameerpet SEC
    30
    according to mapping the data in table must be like:
    P_Id,LastName,FirstName,age,Address,City,no
    1 one first 11 sanathnagar HYD 5
    2 two second 12 xyz abc 0
    3 third three 20 ameerpet SEC 30
    but it inserting same as input file format so first name and last name are miss matching
    please let me know if you have any idea.
    Thanks,
    Hi all,
    Thanks for your response, and sorry for wrong question here i need to supply default values to column of
    table based on input file so default values of columns will be changed based on input file, and one more thing i don't have any rights to change the table structure my work is to load data from file to table. Is there any chance to supply default values by XMLformat
    file instead of .fmt file
    or any other scenarios please let me know the possibility.

  • I received pictures in a dozen emails and saved each picture into one file in .pages.  I did not import the photos before doing this and now iPhoto won't recognize the pictures because they are in a .pages file.  How do I get the pics to iPhoto?

    I received a dozen pictures in a few emails and I saved them all into one file in pages.  I just copied and pasted.  I do not have the originals any longer.  Iphoto will not permit me to import the pictures as it does not recognize a .pages file, nor can I simply click and drag from the pages document to iphoto nor from pages to the desktop to iphoto.  How can I save each picture I guess back into a jpeg and then import them into iphoto or have i lost them to a pages document forever?  This is urgent as I need the pictures made into a book on iphoto for work by Friday!!!  Please advise!  Thank you.

    Greetings,
    Locate the Pages document wherever it's located on your computer and click once on it to highlight it.
    Go to File > Duplicate to make a backup copy of the file.
    Click once again on the file to highlight it.
    Go to File >  Get Info
    In the "Name & Extension" category remove the ".pages" extension and put in ".zip".
    Close the info window and double-click the now renamed pages file (zip file now).It will decompress into a folder which contains all the base components including all the images you added.  These can be dragged onto the iPhoto icon to import them.
    Hope that helps.

Maybe you are looking for