Strange glitch in my script. Please help!

I've been working on a script that would help a friend of mine to prep photos for his web-site. It was working just fine until after some small change it suddenly started telling me this: "Cannot open the file because the open options are incorrect". The ExtendScript Toolkit highlights line 44:  var doc = app.open(file);
I've looked at all variations of the app.open(); function but can't seem to understand what is wrong.
I'm hoping someone will notice the problem. Thanks in advance!
#target photoshop
var outputWidth = 1500; 
alert("You will now need to select a folder with photos to be processed.");
var inputFolder = Folder.selectDialog("Select Input folder");
// Creating a new  subfolder based on user input
var outputFolder = new Folder(inputFolder + "/" + "PROCESSED"); 
outputFolder.create();
var Destination = outputFolder.path + "/" + outputFolder.name;
// Replacing %20 with space for clean alert
var CleanDestination = Destination.replace('%20', ' '); 
var CleanerDestination = CleanDestination.replace('%20', ' '); 
var startRulerUnits = preferences.rulerUnits; 
app.preferences.rulerUnits = Units.PIXELS;
// our web export options
var options = new ExportOptionsSaveForWeb();
options.quality = 70;
options.format = SaveDocumentType.JPEG;
options.optimized = false;
options.includeProfile = true;
if (inputFolder != null && outputFolder != null) { 
    var files = inputFolder.getFiles(); 
    for (var i = 0; i < files.length; i++) { 
        var file = files[i]; 
        var doc = app.open(file); 
        // get a reference to the current (active) document and store it in a variable named "doc"
        doc = app.activeDocument; 
       //get the filename without the extension 
        var Name = app.activeDocument.name.replace(/\.[^\.]+$/, ''); 
       if (doc.height > 1000) {
//build up the output file name and path 
         var goodFolder = new Folder(outputFolder + "/" + "READY FOR WEB"); 
        goodFolder.create();
        var saveFile = File(goodFolder + "/" + Name + "-web" + ".jpg"); 
// do the resizing.  if height > width (portrait-mode) resize based on height.  otherwise, resize based on width
        if (doc.height > doc.width) {
        doc.resizeImage(null,UnitValue(outputWidth,"px"),null,ResampleMethod.BICUBIC);
        else {
        doc.resizeImage(UnitValue(outputWidth,"px"),null,null,ResampleMethod.BICUBIC);
else {
   //build up the output file name and path 
        var smallFolder = new Folder(outputFolder + "/" + "TOO SMALL"); 
        smallFolder.create();
        var saveFile = File(smallFolder + "/" + Name + ".jpg"); 
        doc.convertProfile('sRGB IEC61966-2.1', Intent.RELATIVECOLORIMETRIC, true, true);
        //you need to have a full filepath not a folder 
        doc.exportDocument(/*outputFolder */saveFile, ExportType.SAVEFORWEB, options); 
    doc.close(SaveOptions.DONOTSAVECHANGES); 
        $.writeln('File ' + (i + 1) + ' of ' + files.length + ' processed'); 
//restore ruler units 
app.preferences.rulerUnits = startRulerUnits; 
alert(files.length + " files have been processed into " + CleanerDestination);

JJMack,
Right before var doc = app.open(file);  fails to execute, the value of var file is "~/Desktop/Input/.DS_Store", where Input is my folder with images.

Similar Messages

  • Very strange behaviour master-detail-detail please help

    Very strange behaviour master-detail-detail please help
    Hello,
    I have a parent-child-grandchild report which show's some really strange behaviour.
    The data template has 3 queries Q1, Q2 and Q3.
    Q2 is bound to Q1 using a bind variable
    Q3 is bound to Q2 using another bind variable
    For a certain record in Q1 the output should be
    2 records in Q2
    and 1 record in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q2 record B
    Q3 record BC
    The results conforms to the expected output.
    For another record in Q1 the output should be
    2 records in Q2
    and 2 records in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    In stead of the expected output, the result shows
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record AB
    For another record in Q1 the output should be
    5 records in Q2
    and 2 records in Q3 for each record in Q2
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    Q2 record C
    Q3 record CE
    Q3 record CF
    Q2 record D
    Q3 record DG
    Q3 record DH
    Q2 record E
    Q3 record EI
    Q3 record EJ
    In stead of the expected output, the result shows
    Q1 record
    Q2 record A
    Q3 record AA
    Q3 record AB
    Q2 record B
    Q3 record BC
    Q3 record BD
    Q2 record C
    Q3 record CE
    Q3 record CF
    Q2 record D
    Q3 record DG
    Q3 record DH
    Q2 record E
    Q3 record DH
    So for the last record of Q2 I don't get the appropriate records from Q3 when there are multiple records to be shown, but only the last record which belongs to the previous Q2
    What is going on?
    Please help me out...
    Kind regards,
    Jan-Marcel

    Hi Tim,
    Thanks for your reply. Below you will find the datatemplate on the scott/tiger schema.
    Please help me out.
    Kind regards,
    Jan-Marcel
    <dataTemplate name="scott" description="Template scott" dataSourceRef="otcy001" version="1.1">
      <parameters>
        <parameter name="p_deptno" dataType="number"/>
      </parameters>
      <dataQuery>
        <sqlStatement name="Q1">
          <![CDATA[
            select empno            mgr_empno
                 , ename            mgr_name
                 , job              mgr_job
                 , hiredate         mgr_hiredate
                 , sal              mgr_sal
                 , comm             mgr_comm
              from emp
             where deptno = nvl(:p_deptno, deptno)
               and mgr is null
          ]]>
        </sqlStatement>
        <sqlStatement name="Q2">
          <![CDATA[
            select empno            mgr2_empno
                 , ename            mgr2_name
                 , job              mgr2_job
                 , hiredate         mgr2_hiredate
                 , sal              mgr2_sal
                 , comm             mgr2_comm
                 , mgr              mgr2_mgr
              from emp
             where mgr = :mgr_empno
          ]]>
        </sqlStatement>
        <sqlStatement name="Q3">
          <![CDATA[
            select empno            emp_no
                 , ename            emp_name
                 , job              emp_job
                 , hiredate         emp_hiredate
                 , sal              emp_sal
                 , comm             emp_comm
                 , mgr              emp_mgr
              from emp
             where mgr = :mgr2_empno
          ]]>
        </sqlStatement>
      </dataQuery>
      <dataStructure>
        <group name="G_mgr1" source="Q1">
          <element name="q1_mgr_empno"    value="mgr_empno"/>
          <element name="q1_mgr_name"     value="mgr_name"/>
          <element name="q1_mgr_job"      value="mgr_job"/>
          <element name="q1_mgr_hiredate" value="mgr_hiredate"/>
          <element name="q1_mgr_sal"      value="mgr_sal"/>
          <element name="q1_mgr_comm"     value="mgr_comm"/>
          <group name="G_mgr2" source="Q2">
            <element name="q2_mgr_empno"    value="mgr2_empno"/>
            <element name="q2_mgr_name"     value="mgr2_name"/>
            <element name="q2_mgr_job"      value="mgr2_job"/>
            <element name="q2_mgr_hiredate" value="mgr2_hiredate"/>
            <element name="q2_mgr_sal"      value="mgr2_sal"/>
            <element name="q2_mgr_comm"     value="mgr2_comm"/>
            <element name="q2_mgr2_mgr"     value="mgr2_mgr"/>
            <group name="G_emp" source="Q3">
              <element name="q3_emp_empno"    value="emp_empno"/>
              <element name="q3_emp_name"     value="emp_name"/>
              <element name="q3_emp_job"      value="emp_job"/>
              <element name="q3_emp_hiredate" value="emp_hiredate"/>
              <element name="q3_emp_sal"      value="emp_sal"/>
              <element name="q3_emp_comm"     value="emp_comm"/>
              <element name="q3_emp_mgr"      value="emp_mgr"/>
            </group>
          </group>
        </group>
      </dataStructure>
    </dataTemplate>

  • DVD Audio and Subtitle script Please HELP

    Subtitle Audio Scripts Please Help
    Posted: Sep 3, 2006 8:04 PM
    I need to write a script that does the following:
    1st I have the end user choose if they want subtitles on or off and then both the buttons will default for the user to chose a language choice. So I need a script that will play just audio streams and a script that will play audio with the same language subtitle. Also if the user just pushes the language button I need the script it to default to play just that language...
    Here is what I have scripted already please tell me where my mistake is:
    Button Command
    Subtitles
    On mov GPRM 0,0
    Jump Special Features: English
    Off mov GPRM 0,1
    Jump Special Features: English
    English 1. mov GPRM 0,2
    2. Set System stream Au(Audio Stream 1) if (0=0)
    3. Set System Stream St(Subtitle Stream 1)(ON) if (0=0)
    4. Goto 11 if (GPRM 0=0)
    5. Set System stream Au(Audio Stream 1) if (0=1)
    6. Set System Stream St(Subtitle Stream 1)(Off) if (0=1)
    7. Goto 11 if (GPRM 0=1)
    8. Set System stream Au(Audio Stream 1) if (0=2)
    9. Set System Stream St(Subtitle Stream 1)(Off) if (0=2)
    10. Goto 11 if (GPRM 0=2)
    11. Jump JOFDVD:Start
    12. Exit
    All my language scripts will be similar just with different audio and sub streams.
    Help Please-
    Ryan-

    Hi There
    I think your error is in the first line of your script.
    You're using GPRM 0 to set your subtitle condition and when you press enter on your english button your first line says
    1. mov GPRM0,2
    I'm assuming you want to use this first comand to set your languange condition so you should use GPRM 1 (or more) - at this stage all you're doing is removing the subtitle condition set by your earlier script.
    Good luck
    Cheers
    B

  • Trying to create complicated script, please help!

    I work at a cell phone store where business is less than excellent. We have this nifty tool where i enter a customers phone number and zip code in and it tells me if the are eligible for a discount. So my boss wants me to type in a phone number, beginning with the prefix 208640, and 208641, and beginning at the end of 0000 and ending at 9999, and calling all customers who are shown as eligible, if a phone number and zip code combination does not match, the site will rout me back to the entry page, and if a phone number/zip match it will take me to a new page showing me the results... this sounds like a job for a computer, and I am not willing to put that much time and effort into a useless, remedial task for $9.00 an hour as store manager... Please help!

    Automator might be the wrong tool. For scripting queries, post to the AppleScript forum under OS X Technologies.

  • Problems in SAP script : Please help

    Hi Friends:
       I've got a ticket in SAP script & need to do the following modifications:
    1. In the SAP script, on the bottom side there is a cheque no. I want to print the chequq no. in MICR format. Right now its coming into normal format. Please advise me in details as to what to do?
    2. How to convert the date format from DD.MM.YYYY to DDMMYYYY.
    3. There is some amount getting printed on the cheque. e.g $50.00 The requirement is like that after '$' sign, 50.00 should come in a box.Please advise as how to do that.
    4. There is some gap coming in between the '$' & the amount 50.00. Once that 50.00 will be in Box, as per point 4, how to reduce the gap.
    5. The "$" sign is not getting printed correctly. The line which is striking vertically the 'S', is appearing broken. Please advise as how to resolve the same.
    Hi experts, please help me on the above points. Suitable points will be rewarded.
    Thanks:
    Gaurav

    Hi there.
    Question 1:
    Use font MICR_C for MICR CMC-7 or MICR_E for MICR E-13B
    http://help.sap.com/saphelp_nw04/helpdata/en/90/78f078030211d399b90000e83dd9fc/frameset.htm
    Question 2:
    /: SET DATE MASK = 'DDMMYYYY'
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/8034d4454211d189710000e8322d00/frameset.htm
    Question 3:
    /E BOX_ELEMENT
    /: POSITION WINDOW                       
    /: POSITION YORIGIN &Y& LN 
    /: SIZE HEIGHT &HEIGHT& LN    
    /: BOX FRAME 10 TW
    /: BOX XPOS  '0.0' CM  WIDTH 0 TW FRAME 10 TW
    Question 4:
    &symbol(C)&
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/8034d4454211d189710000e8322d00/frameset.htm
    Question 5:
    See SAP Note 129581.
    Best regards.
    Valter Oliveira.
    Edited by: Valter Oliveira on May 30, 2008 4:42 PM

  • Strange issue with iWeb site, please help

    Hi everyone,
    Until recently, I've been keeping an iWeb blog of my time in India. Nothing too complicated, just stories and photo albums. However, recently something strange has happened, and the website is no longer displaying correctly. It looks fine in iWeb, and when I publish it in a folder and open it locally, everything is fine. However, after uploading it to my hosting provider, it looks like this:
    http://www.egbertopreis.nl/India/
    (screenshot of what it looks like here: http://egbertopreis.nl/website_screenshot.PNG )
    This is a screenshot from iWeb of what it should look like: http://www.egbertopreis.nl/iWeb_screenshot.png
    I'm using the 'darkroom' theme, but as you can see, something is clearly wrong. It is not displaying the menu correctly, the layout looks strange and it isn't loading any of the articles. The other pages are accessible if you navigate there directly, but there you have the same problem.
    It looks like, for some reason, the CSS and javascript elements cannot be loaded, although I have no idea why this might be the case. They are all just static files, and it worked fine until about a week ago.
    Although I'm an IT professional, I have literally no idea what could cause a problem like this. I went with iWeb because I wanted to use an 'easy' solution and not over-engineer something for once
    Usually what I'd do in a situation like this, is just purge the whole site and re-upload it. However, since I'm traveling around, I don't have fast internet access anywhere and the site is now so large that it would take forever to completely re-upload. This is also the reason why I can't troubleshoot it properly myself...
    Any help (or even words of encouragement :-)) whatsoever would be extremely welcome. Thanks in advance!
    Message was edited by: Heliode
    Edit: Forgot to mention what I already tried myself;
    - deleted the HTML and XML files and let iWeb do 'publish changes'. Everything was re-uploadeded, but issue remained.
    - Deleted the 'Scripts' folder on the remote host, and manually re-uploaded from locally published folder. No effect.
    - Tried randomly changing layout items in the hope that any potentially corrupted files might be overwritten after publishing. No effect.

    Hi Roddy, thanks for your reply. It wasn't just me though; a lot of other people from back also reported the same issue. I was also getting the same thing from behind a wired connection. You can still see and experience the issue yourself if you look here.
    I've since 'resolved' the issue by getting a .Mac trial account. A friend helped me move the whole blog over there, where the site works as it is supposed to:
    http://web.me.com/eggmeister/India/
    Therefore the issue has to be with the hosting. Right now I'm suspecting it might be some obscure configuration issue with the hosting company's server. Maybe something like too low a setting for Apache's 'MAX REQUESTS'. This might cause issues with all the javascript going on in the iWeb pages, loading elements back and forth. I'm in contact with the hosting provider, and will let you know what I find. Might be useful for future reference.

  • Issue with calculation script - please help

    There is a script that I am working on that needs to track the changes made by the user on the data form and push the entered value down proportionally to the lower levels.
    It’s a signal dimensional spread. It needs to spread the parent level values entered by the users for the product dimension to below levels. The Products are in rows.
    The issue is that the users can enter their data at any level for the product dimension i.e. either at Level 0 product members, Level 1 product members or at Level 2 product members. I am using two accounts A & B in sync to track the changes made.
    The structure of Product dimension that shows up on the form is similar to this –
    ~ Products (The user can enter starting at this level and also the below levels)
    ~ Product A
    ~ Product A1 (Level 0)
    ~ Product A2 (Level 0)
    ~ Product A3 (Level 0)
    ~ Product B (Level 0)
    ~ Product C (Level 0)
    ~ Product D
    ~ Product D1 (Level 0)
    ~ Product D2 (Level 0)
    This is what I came up with so far but it’s not working in all the cases yet. Please give your suggestions to modify this script further to make it work the right way.
    FIX(P, Y, H, E, B, D, C, V, C, S, @Relative(“Products”,-1))
    Account(
    IF(“AccountA”->@Parent(@Currmbr(“Product”)) <> “AccountB”->@Parent(@Currmbr(“Product”)))
    AccountA=AccountB->@Currmbr(“Product”)/AccountB->@Parent(@Currmbr(“Product”)))*AccountA ->@Parent(@Currmbr(“Product”));
    ENDIF;
    ENDFIX;
    FIX(P, Y, H, E, B, D, C, V, C, S, @Relative(“Products”,0))
    Account(
    IF(“AccountA”->@Parent(@Currmbr(“Product”)) <> “AccountB”->@Parent(@Currmbr(“Product”)))
    AccountA=AccountB->@Currmbr(“Product”)/AccountB->@Parent(@Currmbr(“Product”)))*AccountA ->@Parent(@Currmbr(“Product”));
    ENDIF;
    ENDFIX;
    This is not working right in all cases and I am sure I am going wrong somewhere. Please let me know your ideas on how can this be achieved.
    Thanks in advance.
    -Krrish
    Edited by: 928844 on Apr 19, 2012 11:23 AM

    Well... sort of fixed it.  Apparently my system doesn't like editing images with a color depth of 16bit.  If I convert it down to 8 when I'm converting it from RAW, then it allows me to add layers... Is this normal?
    Thank you for your time,
    -Tony

  • Optmization of calculation script Please help urgent

    hi all,
    I know three ways to tackle the block creation issue.
    1. Set CreateBlockon equation.
    2. try some data copy.
    3. calcualte a member via sparse dimension.
    I have a calc as shown below:
    Set CACHE HIGH;
    Set UPDATECALC OFF;
    SET AGGMISSG ON;
    FIX( @Relative("Entity",0),
         @Relative("Business Unit",0)
         @Relative("Branch",0),
         &CurScenario,
         &CurVersion,
         &CurYr,
         "M00",
         "P00000",
         "I000"
    FIX("AAAA")
    "DH" = "Gross Sales"->"External sales"->"MEU" * "Freight Out Percent"->"U000"->"D00000"->"B000"->"00";
    ENDFIX
    ENDFIX
    This is the third method that i mentioned above i am trying to apply to this calc that is calcualtion it via sparse dimesion as first 2 are not working good.
    "AAAAA" is dense dimesion member in accounts and rest every member is sparse.
    The member gross sales, External sales and MEU are all dynamic calc.
    This Calc run for 45 mins just to calculate one account and i have 4 accounts that need to be calculated by this in the same manner and i am trying to optimize this script so that i can reduce its run time.
    However i made another copy of this script in the following way:
    Set CACHE HIGH;
    Set UPDATECALC OFF;
    SET AGGMISSG ON;
    FIX( @Relative("Entity",0),
         @Relative("Business Unit",0)
         @Relative("Branch",0),
         &CurScenario,
         &CurVersion,
         &CurYr,
         "M00",
         "P00000",
         "I000"
    "DH"
    IF (@ISMBR("AAAAA"))
    @CALCMODE(BLOCK);
    @CALCMODE (Bottomup);
    "DH"= @Round((("Gross Sales"->"External Sales"->"MEU") * ("Freight In Percent"->"U000"->"D00000"->"B000"->"00")),2);
    ElSEIF (@ISMBR("BBBBB"))
    @CALCMODE(BLOCK);
    @CALCMODE (Bottomup);
         "DH"= @Round((("Gross Sales"->"External Sales"->"MEU") * ("Freight Out Percent"->"U000"->"D00000"->"B000"->"00")),2);
    ENDIF
    ENDFIX
    In th above version of the script it runs very fast but dont calculate any value :( for the account "AAAAA" & "BBBB"
    I have tried almost every way to do this and running short of ideas to optmize this.
    Is there any other way in which i can tackle the block creation issue or a way in which i can bring down the run time of this calculation
    Any suggestion regarding this would be great
    Thanks for help!
    Edited by: user4958421 on Jun 29, 2009 10:18 AM
    Edited by: user4958421 on Jun 29, 2009 10:18 AM

    For block creation issue:
    SET CREATEBLOCKONEQ equation will only work if the left side of an assignment statement is sparse.
    If the left side of an assignment is dense, you need to use SET CREATENONMISSINGBLK ON.
    For example:
    1.
    FIX("DH")
    SET CREATENONMISSINGBLK ON;
    "AAAAA" = "Gross Sales"->"External sales"->"MEU" * "Freight Out Percent"->"U000"->"D00000"->"B000"->"00";
    ENDFIX
    With the above, try to fix as little as possible. For example: do you really need to run the above
    formula for @Relative("Entity",0),@Relative("Business Unit",0), and @Relative("Branch",0)? Or
    actually the above formula is only needed for specific entity, business units and branch.
    2.
    FIX("AAAA")
    SET CREATEBLOCKONEQ ON;
    "DH" = "Gross Sales"->"External sales"->"MEU" * "Freight Out Percent"->"U000"->"D00000"->"B000"->"00";
    ENDFIX
    Another technique you can try:
    3.
    FIX("AAAA")
    "DH" = 0;
    "DH" = "Gross Sales"->"External sales"->"MEU" * "Freight Out Percent"->"U000"->"D00000"->"B000"->"00";
    ENDFIX
    And, you can also consider to change member "AAAA" to dynamic calc, and
    put the formula in the member. With this, you will not have calculation performance issue.
    If you use a calc like this:
    Sales (
    IF (@ISMBR(Jan))
    Sales=100;
    ENDIF)
    You do not need to repeat sales, so,
    it will be:
    Sales (
    IF (@ISMBR(Jan))
    100;
    ENDIF)

  • Very Strange Logic Studio Installing Problem, please help !

    Hello .
    I wanted to install Logic Studio 9 on a brand new imac and somehow installation was failed .
    Than i erased what ever i could which was left from the failed installation .
    And now i am trying to reinstall, but this time Installation is not asking me Audio Content 1, 2 and 3
    And also after Jam Pack 1, instead of continuing to 2 and 3, is asking to put install disk , and after that point installation getting failed again .
    So far what i erased after failure was (only the ones i could find out of this list )
    Application Files
    /Applications/Compressor
    /Applications/Logic Node
    /Applications/Logic Pro
    /Applications/MainStage
    /Applications/Soundtrack Pro
    /Applications/WaveBurner
    /Applications/Utilities/Apple Loops Utility
    /Applications/Utilities/Impulse Response Utility
    Factory Settings, Instruments
    /Library/Application Support/Logic/
    /Library/Application Support/Garageband/
    /Library/Application Support/Garageband Content/ (Legacy)
    /Library/Application Support/Soundtrack Pro/
    /Library/Application Support/WaveBurner/
    Impulse Responses
    /Library/Audio/Impulse Responses/
    Receipts
    Receipts can vary quite a bit depending on your system. Try to find all those that look like the following:
    /Library/Receipts/AudioContentforSoundtrackProXX.pkg
    /Library/Receipts/CompressorXX.pkg
    /Library/Receipts/EXS24SamplerLibrarySamples.pkg
    /Library/Receipts/EXS24SamplerLibraryStudio.pkg
    /Library/Receipts/GarageBandXX.pkg
    /Library/Receipts/ImpulseData.pkg
    /Library/Receipts/ImpulseResponseUtility.pkg
    /Library/Receipts/JamPackXX.pkg
    /Library/Receipts/LogicXX.pkg
    /Library/Receipts/MainStageXX.pkg
    /Library/Receipts/RemixToolsXX.pkg
    /Library/Receipts/RhythmSectionXX.pkg
    /Library/Receipts/SharedLogicStudioHelpFiles.pkg
    /Library/Receipts/SoundtrackProXX.pkg
    /Library/Receipts/UltrabeatXX.pkg
    /Library/Receipts/WaveburnerXX.pkg
    User Preferences:
    ~/Library/Preferences/com.apple.logic.pro.plist
    ~/Library/Preferences/com.apple.logic.pro.cs
    ~/Library/Preferences/Logic/ (Legacy preferences)
    License
    /Library/Application Support/ProApps/Logic Studio System ID
    Apple Loops
    /Library/Audio/Apple Loops/Apple/Apple Loops for GarageBand/
    /Library/Audio/Apple Loops/Apple/Apple Loops for Soundtrack Pro/
    /Library/Audio/Apple Loops/Apple/iLife Sound Effects/
    /Library/Audio/Apple Loops/Apple/Jam Pack 1/
    /Library/Audio/Apple Loops/Apple/Jam Pack Remix Tools/
    /Library/Audio/Apple Loops/Apple/Jam Pack Rhythm Section/
    /Library/Audio/Apple Loops/Apple/Jam Pack Symphony Orchestra/
    /Library/Audio/Apple Loops/Apple/Jam Pack World Music/
    /Library/Audio/Apple Loops Index/
    But what ever i tried, gives no solution . At the end a fail .
    How can i wipe out all the Logic existence from my computer to make new install ?
    Or, what is this problem i am having? As installation is not asking some discs which is necessary for the setup anymore .
    Did anyone experienced that ?
    I will be very happy if someone can assist on me this . Since 5 hours i am trying to setup this thing .
    Thanks a lot

    it is very frustrating to see such an installation problem happening from a "professional" called DAW .
    I am actually a Protools user , and i have never had this type of complications .
    I mean come on, i am just trying to install the thing .
    On a new system, on a new computer and from an original purchase .
    I believe i have enough computer knowledge to instal a simple software .
    But i am spending almost 10 hours since yesterday to install Logic .
    Instead of making designer boxes or giving fancy advertisements, i am inviting Apple Engineers to create proper working software .
    Especially to see a professional audio software like Logic in this epic fall, is very very bad .
    I mean you can say i am problematic and don't know how to instal a simple software, but than please write to google, Logic installation problems , and you will see thousands of issues .
    Whatever i am writing here not against to the people who are replying and want to help , i just want Apple to read this .
    Ah , i am sure Apple won't put attention on it , but doesn't matter .
    You just lost 1 customer for Logic
    I am erasing this thing now from my computer and continue with Protools as the way i was doing .
    Sorry if i am bitter, but this is not acceptable .
    Message was edited by: timbre2010

  • A little change is required in the script, please help.

    I am using a script named as <Zoom to Width> that I found on web. This script does two jobs
    (1) zoom to a specific percentage
    (2) and center the page horizontally as well vertically at that zoom level.
    I have changed the zoom value to 170% in it. Now the problem is that when script center the page at 170% it shows the middle of the page (horizontal as well as vertical). I need horizontal center but not vertical center of page, so I have to move to the top of page by scrolling or by moving cursor. I want a little change in it that vertically top of the page should appear instead of the middle of page i.e.
    I want 170% zoom + horizontal page center + vertical page top.
    I would appreciate any help. I am on Windows 64bit. Here is the script
    //DESCRIPTION: Zooms to the width of currently selected object or the current page. http://www.in-tools.com
    ZoomToWidth();
    function ZoomToWidth(){
        var kAppVersion=parseFloat(app.version);
        try{
            if(File.fs == "Macintosh"){var isMac = true}
            else{var isMac = false}
            if(kAppVersion>=6 && app.generalPreferences.useApplicationFrame){
                var usesApplicationFrame = true;
            else{var usesApplicationFrame = false}
            var sel=app.selection[0];
            var window = app.activeWindow;
            if(! (window instanceof LayoutWindow) ){return}
            var doc = app.documents[0];
            var horizViewPrefs = doc.viewPreferences.horizontalMeasurementUnits;
            doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
            var theWidth = doc.documentPreferences.pageWidth;
            var theHeight = doc.documentPreferences.pageHeight;
            var theSpread = window.activeSpread;
            var pagesLength = theSpread.pages.length;
            if(isMac){
                var windowWidth = window.bounds[3]-window.bounds[1]-35;
                if(usesApplicationFrame){
                    window.zoom(ZoomOptions.fitSpread);
                    var spreadZoom = window.zoomPercentage;
                    windowWidth = (spreadZoom/170)*(theWidth*pagesLength);
            else{
                var windowWidth = window.bounds[3]-window.bounds[1]-50;
                if(usesApplicationFrame){//|| pagesLength>1 || theWidth>theHeight
                    window.zoom(ZoomOptions.fitSpread);
                    var spreadZoom = window.zoomPercentage;
                    windowWidth = (spreadZoom/170)*(theWidth*pagesLength);
            if(sel && (sel.hasOwnProperty("parentTextFrames") || sel.hasOwnProperty("visibleBounds")) ){
                if(sel.hasOwnProperty("parentTextFrames")){
                    var textFrame = sel.parentTextFrames[0];
                    var frameBounds = textFrame.visibleBounds;
                    app.select(sel.parentTextFrames[0]);
                else{frameBounds = sel.visibleBounds}
                theWidth = frameBounds[3]-frameBounds[1];
            else{window.zoom(ZoomOptions.fitPage)}
            window.zoomPercentage = (windowWidth/theWidth)*170;
            doc.viewPreferences.horizontalMeasurementUnits = horizViewPrefs;
            app.select(sel);
        catch(e){}

    Hi,
    Basically your function is zooming base to width (selected object or window) so instead of modifying I suggest to create a new a "base to scale" function.
    To keep top window content shown after scaling one can use a trick and select temporalily created object in a center (remove it after), so:
    function zoomToScale(myScale) {
      if (isNaN(myScale) || myScale > 4000 || myScale < 4) myScale = 100;
      var
      window = app.activeWindow,
      mDoc = app.activeDocument,
      mZeroPoint = mDoc.zeroPoint,
      mHorizViewPrefs = mDoc.viewPreferences.horizontalMeasurementUnits,
      mActiveSpread = window.activeSpread,
      mSpreadPages = mActiveSpread.pages.length,
      mWidth, theRec, mTopCenter;
      mDoc.zeroPoint = [0,0];
      mDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
      mWidth = mDoc.documentPreferences.pageWidth;
      theRec = mActiveSpread.rectangles.add();
      mTopCenter = mWidth*mSpreadPages / 2;
      theRec.move(undefined,[mTopCenter,0]);
      window.zoom(ZoomOptions.fitSpread);
      window.zoomPercentage = myScale;
      app.selection = theRec;
      theRec.remove(); 
      mDoc.zeroPoint = mZeroPoint;
      mDoc.viewPreferences.horizontalMeasurementUnits = mHorizViewPrefs;
    call it i.e. this way:
    zoomToScale(170);
    myScale is reset to 100 if it is out of range or is not a number
    Jarek

  • Editing an export script - please help!

    Hello Photoshop friends,
    so I have an export script that I downloaded from the web which exports all layers to a file type of your choice - PNG, GIF, etc. This is fine, but the dialog box doesn't support file format options such as matte, dither, transparency and so forth. Is it possible to edit the script to give it literal values for these inaccessible variables instead of the default? I'v been digging around the script, but I'm not really sure what I'm doing.
    Specifically, I want to leave the script intact except the following settings for the PNG8 format:
    Colours 256
    Transparency - YES
    "No transparency dither"
    Matte: "none" (currently it gives me a white matte)
    Please, I would really appreciate if anyone could point me in the right direction please, please!
    Ulerika.

    Hey Michael, thanks for your quick reply. I tried to attach the script, but the forum won't allow me to do so. The script in question is here:
    http://tranberry.com/photoshop/photoshop_scripting/tips/layerstoPNG.html
    There is one big section dealing with PNG8 which I suspect is the place which needs to be changed. An extraction from this section for example reads:
    "var id35 = charIDToTypeID( "Mtt " );
    desc4.putBoolean( id35, true ); //matte
    var id36 = charIDToTypeID( "MttR" ); //matte color"
    Thanks.

  • Strange MIDI error message. Please Help

    I keep getting a strange message when I load logic: “Logic Pro has detected a possible conflict between one or more third party MIDI or audio drivers. Be sure to install the latest drivers for all audio and MIDI equipment connected to your computer, and remove any older or unused drivers”. After a few attempts to get the message to go away, Logic finally loaded. Does anyone have any idea what this is? I’ve searched the forums and can’t seem to find any info. Thanks.

    Did you recently upgrade to Logic Pro 7.2?
    If so, then the reason for the error message is that the latest MIDI and audio drivers of your plug-ins need to be updated before you upgrade Logic.
    Try this... Under the file menu at the top left corner, go to Logic Pro, then down to preferences, and then Start Logic AU manager. You will then get a dialogue box that asks if it is OK to quit the current program and start the AU manager. Click the start AU manager. A screen then pops up showing all of the plug-ins of your system. Logic scans them to validate them. Those in which there is a problem (crashing, etc), indicates likely that the drivers for those AU units need to be updated.
    Once all of them pass validation, then the error message should go away.
    This information was gleaned from one of the tutorials that I watched on VTC.com, the Logic Pro section, and on Martin Sitter' tutorials on MacProvideo.com. I highly recommend the tutorials... they are excellent.
    Hope the above helps.

  • Converting flash into java script - please help!

    Our site uses a lot of flash text and flash images, I have
    been told by a friend of a friend that i need to change the way
    flash is embedded into java script - i only know the basics of web
    design and this is me hitting brick wall!
    Maybe someone could help point me in the right direction -
    simply! thank you in advance!!!!!!!!!!!!!!!!!!!!!!!!!!

    which version of dw do you have?
    for background info, google EOLAS activeX lawsuit
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Vbscript indesign cs 5.5 - package script - please help

    I am trying to create a package script in VBS and I am getting mixed results :-
    If I use this code:-
    Set myInDesign = CreateObject("InDesign.Application")
    set fso = CreateObject("Scripting.FileSystemObject")
    myPackageFolder = "C:\test\"
    set myDocument = myIndesign.ActiveDocument
    myDocument.package myPackageFolder, false, true, false, true, true, true, false
    Then Indesign Crashes
    If I use this code (update graphics links is false instead of true):-
    Set myInDesign = CreateObject("InDesign.Application")
    set fso = CreateObject("Scripting.FileSystemObject")
    rem fso.CreateFolder mypath & "\package\"
    rem myPackageFolder = mypath & "\package\"
    myPackageFolder = "C:\test\"
    set myDocument = myIndesign.ActiveDocument
    myDocument.package myPackageFolder, false, true, false, false, true, true, false
    Then I get a Warning :-
    An attached script generated the following error.
    Cannot save a copy of "1234567ab.indd"
    do I want to disable the event handler (was triggered from after save event)
    So is this because the file really isnt saved yet and is somehow locked .. so you cant update graphics or copy it???

    Hi,
    On which platform are you installing ,check if its meets the system requirements.
    http://java.sun.com/j2se/1.4.2/install.html might help you.
    -Amol

  • Strange GUI freezing TrayIcon + PopupMenu, please help

    Can anybody help me ?
    I wrote very simple program demostrating some GUI activities (changing JPanel background color and tray icon). The problem is that my program freez when I popup tray icon menu (right click) ! :(
    I checked it on Windows XP and 2000 on Java 6.0 b105 and u1 b03.
    I also tryed popup menu manually via .show() from new thread, but it still blocks my program GUI.
    Can you just copy & paste this program, run it and tell me behaviour on your computer ???? Thank you very much.
    Maby somebody know what I am doing wrong and how to use PopupMenu without blocking other GUI operations ???
    //====================================
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class IsTrayIconMenuBlocking3
            public static void main( String[] args ) throws Exception
                    // --- JFrame & JPanel section
                    final JPanel jp = new JPanel();
                    JFrame jf = new JFrame();
                    jf.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
                    jf.add( jp );
                    jf.setSize( 300 , 300 );
                    jf.setVisible( true );
                    // --- menu item action
                    ActionListener itemExitAction = new ActionListener()
                            public void actionPerformed( ActionEvent e )
                                    System.out.println( "item action: exit" );
                                    System.exit( 0 );
                    // --- popup menu
                    PopupMenu pm = new PopupMenu( "Tray Menu" );
                    MenuItem mi = new MenuItem( "Exit" );
                    mi.addActionListener( itemExitAction);
                    pm.add( mi );
                    // --- system tray & tray icon
                    final TrayIcon ti = new
              TrayIcon( ((ImageIcon)UIManager.getIcon("OptionPane.questionIcon")).getImage() ,"Tray Icon" , pm );
                    SystemTray st = SystemTray.getSystemTray();
                    ti.setImageAutoSize( true );
                    st.add( ti );
                    // --- color & icon changing loop
                    final Image[] trayIcons = new Image[3];
                    trayIcons[0] = ((ImageIcon)UIManager.getIcon("OptionPane.errorIcon")).getImage();
                    trayIcons[1] = ((ImageIcon)UIManager.getIcon("OptionPane.warningIcon")).getImage();
                    trayIcons[2] = ((ImageIcon)UIManager.getIcon("OptionPane.informationIcon")).getImage();
                    Runnable colorChanger = new Runnable()
                            private int counter = 0;
                            private int icon_no = 0;
                            public void run()
                                    System.out.println( "Hello from EDT " + counter++ );
                                    if( jp.getBackground() == Color.RED )
                                            jp.setBackground( Color.BLUE );
                                    else
                                            jp.setBackground( Color.RED );
                                    ti.setImage( trayIcons[icon_no++] );
                                    if( icon_no == trayIcons.length ) icon_no = 0;
                    while( true )
                            javax.swing.SwingUtilities.invokeLater( colorChanger);
                            try{Thread.sleep( 500 );} catch ( Exception e ){}
    //==================================== Once again, thanks !!
    Artur Stanek, PL

    Yes. It happens to me too.
    I have tried using SwingWorker but nothing changes.
    It seems to me that PopupMenu blocks the EDT, try
    to put on you test frame a popup, probably when pop-up
    your gui stops to change colors.
    package test;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class IsTrayIconMenuBlocking3
       public static void main(String[] args) throws Exception
          final JPanel jp = new JPanel();
          JFrame jf = new JFrame();
          jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          jf.add(jp);
          jf.setSize(300, 300);
          jf.setVisible(true);
          WorkerTray vTray  = new WorkerTray();
          vTray.execute();
          ColorChanger vColor = new ColorChanger(jp, vTray.get());
          vColor.execute();
    package test;
    import java.awt.Color;
    import java.awt.Image;
    import java.awt.TrayIcon;
    import javax.swing.ImageIcon;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    import javax.swing.SwingWorker;
    import javax.swing.UIManager;
    public class ColorChanger extends SwingWorker<Boolean, Void>
       JPanel      jp;
       TrayIcon    ti;
       private int counter   = 0;
       private int icon_no   = 0;
       Image[]     trayIcons = new Image[3];
       public ColorChanger(JPanel aPanel, TrayIcon anIcon)
          jp = aPanel;
          ti = anIcon;
          trayIcons[0] = ((ImageIcon) UIManager.getIcon("OptionPane.errorIcon"))
                .getImage();
          trayIcons[1] = ((ImageIcon) UIManager
                .getIcon("OptionPane.warningIcon")).getImage();
          trayIcons[2] = ((ImageIcon) UIManager
                .getIcon("OptionPane.informationIcon")).getImage();
       @Override
       protected Boolean doInBackground() throws Exception
          boolean vCicle = true;
          while (vCicle)
             System.out.println("Hello from EDT " + counter++);
             if (jp.getBackground() == Color.RED)
                SwingUtilities.invokeLater(new Runnable()
                   public void run()
                      jp.setBackground(Color.BLUE);
             else
                SwingUtilities.invokeLater(new Runnable()
                   public void run()
                      jp.setBackground(Color.RED);
             ti.setImage(trayIcons[icon_no++]);
             if (icon_no == trayIcons.length)
                icon_no = 0;
             Thread.currentThread().sleep(500);
          return new Boolean(true);
    package test;
    import java.awt.MenuItem;
    import java.awt.PopupMenu;
    import java.awt.SystemTray;
    import java.awt.TrayIcon;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ImageIcon;
    import javax.swing.SwingWorker;
    import javax.swing.UIManager;
    public class WorkerTray extends SwingWorker<TrayIcon, Void>
       TrayIcon wTray;
       public WorkerTray()
       @Override
       protected TrayIcon doInBackground() throws Exception
          PopupMenu pm = new PopupMenu("Tray Menu");
          MenuItem mi = new MenuItem("Exit");
          // mi.addActionListener(itemExitAction);
          pm.add(mi);
          // --- system tray & tray icon
          wTray = new TrayIcon(((ImageIcon) UIManager
                .getIcon("OptionPane.questionIcon")).getImage(), "Tray Icon", pm);
          mi.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent aE)
                      System.out.println("quiquiquiquqi");
                      System.exit(0);
          SystemTray st = SystemTray.getSystemTray();
          wTray.setImageAutoSize(true);
          st.add(wTray);
          return wTray;
    }

Maybe you are looking for

  • How to export videos from Final cut?

    I woud'l like to know what is the best way to export a video of 34min from Final Cut? after I'm gonna burn at Toast! and in Toast should I chose "dvd" or "video_TS"? I tryed already export with "sequence quicktime" and DV PAL 48 kHz and burn with "DV

  • Cannot update 6th gen iPod nano.

    Hi all, I am trying to update music and software but I get the following message .... "The iPod ....... cannot update because it contains files that are in use by another application". I have done a couple of resets and have tried the restore in iTun

  • Can we be done loading driver and registering driver by Using 'new" Operat.

    Dear Sir.. Can we directly create the instance of any driver class by using the "new" operator and by this object can we call any method like getConnection() etc,will it return connection instance. Is it necessary these all task from loading to regis

  • FR Studio login issues

    I just installed FR Studio 11.1.2.1. I'm trying to connect to FR server 11.1.1.3. It throwed an error message saying "You're not authorized to use this functionality. Contact your administrator". Does this mean I can't connect to 11.1.1.3 using FR St

  • CUIC reporting: handled calls greater than answered calls

    Hello, We met the following problem in Cisco Cuic reporting 8.5.4 for cisco UCCE 8.5.3. We use only the stock reports. In call type historical all fields we met a strange situation for a simple inbound script: - the numbers of handled calls is greate