Promblem in opening file through scripting?

I want to open a file in photoshop through javascript but i dont know how to specify path of the file in the script. I'm a mac user and new to scripting.........Pls help!!!!

"~/Desktop/ /Filename"<br />or <br />"/Volumename/Foldername//Filename"<br />I guess. (With »« meaning: The names of the folders in sequence.) <br />But be aware that spaces and other keys might cause problems. <br /><br />Or do You mean You want to be allowed to select a file? <br />In which case I would use: <br />var theFile = File.openDialog ("open", false);<br />photoshop.open(theFile);<br /><br />And for more files one could use:<br />var theFiles = File.openDialog ("open", true);<br />for (var m=0; m<theFiles.length; m++) {<br />photoshop.open(theFiles[m])<br />};

Similar Messages

  • Opening files through network location is not working in Office 2013

    Dear Colleagues!
    We have faced the following problem. On our Windows 7 Professional computers were installed Office 2013 Standard. softwares.  As before we have defined network locations.  After the step into the folder through the dfined network location
    the Word and Excel do not open the files and the base Office 2013 screen appears with the icons. If we define a shortcut onto the desktop of the computer the same way and step into this folder through the mentioned shortcut the Word and Excel 2013 opens
    the files. For Exemple a pdf file opens in Acrobat Reader through the dfined network location and through the mentioned shorcut as well. It would be important to solve the file handling through network locations too.
    Thanks in advance your answers.
    Best regards
    LAMBDA61 László

    Hi,
    As per the description, I understand that your Office 2013 cannot open files through a network share directly.
    I would like to know that how many clients/users are affected by this in your environment. It could be some specific user account settings, that the Office applications are being affected by.
    I'd first suggest you try with a new Windows user profile, then verify result.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Opening files through mini bridge, from within photoshop.

    When opening files/images from within photoshop use adobe mini bridge, the files open slowly with a long delay?
    Can't figure out why, but when files are open directly from photoshop it is lightning fast.
    Running on a iMac OS X Yosemite
    Version 10.10.2

    Okay.. Yeah, that's why I'm running Windows 7 still
    This may have to do with some of the bugs Apple introduced into Yosemite. They are working on a fix. Can't really think of much else, other than make sure everything is up to date. Maybe someone with more knowledge of Mini Bridge will find this post.
    Benjamin

  • Mavericks Calendar Open File Alarm Scripting Failure

    Hi all,
    I just recently upgraded to 10.9 from 10.8.5. Part of my daily routine is to download an excel file, gather information from that excel and, using applescript, add information from that document to an icloud calendar found in Apple Calendar, and create an alarm that opens an application after the specified event time.
    The upgrade to Mavericks did two things, first it stripped away all of the "Open File Alarms" from existing events on the icloud calendar, and now when I attempt to create new events with the below applescript, I get an error  "There was an error saving calendar data. Calendar encountered a critical error while saving to the database, and recent changes may be lost. More information may be available in the console." If I strip away the code for adding the open file alarm, the events add properly. If I manually add an open file alarm by clicking the event and selecting the necessary info, the calendar and event save fine. I've checked the applescript dictionary for Calendar in 10.9 and I don't see a difference in how Open File Alarms are handled.  Can anyone offer any suggestions? Below is the snippet of code that grabs the data from excel and loads it into the event in Calendar.
    --opens data in excel
    tell application "Microsoft Excel"
      activate
              set theDoc to "Mac HD:Automatic User:CSV File From Form:Re-Hire Form.csv" as text
      open file theDoc
      --get the outdate programmed for iCal & expiration function
              set eventFirstName to the value of range "B2" & " " as string
              set eventLastName to value of range "C2" & " out" as string
              set eventname to eventFirstName & eventLastName
              set targetDate to the value of range "I2" of active sheet
      quit
    end tell
    --add outdate events to calendar
    tell application "Calendar"
              if class of targetDate = date then
                        set newTargetDate to targetDate + (1 * days)
                        set outDate to short date string of newTargetDate
              end if
              set theoutdatecal to "Show_trans"
              tell calendar theoutdatecal
                        set deactivate_date to make new event with properties {start date:targetDate, summary:eventname, allday event:true, status:confirmed}
              end tell
              tell deactivate_date
                        make new open file alarm at end with properties {trigger interval:1440, filepath:"/Automatic User/Workflows/deactivation.app"}
              end tell
    end tell
    Thanks!

    As a side note, I have also tried unlinking and relinking the icloud account (to clear the calendar data), and creating fresh calendars "On My Mac" to the same result.

  • Not able to open files through any Application in Mavericks

    HI, Since upgrading to Mavericks, I am not able to open the files/folders through any applications (Photoshop, Open office) or attach any files in Mail or web sites, as these files/folders appear greyed out. I could access those files either by locating them in the Finder and right click 'Open with' or drag and drop those files on to the Application icon on the dock. I could not even attach screen shots for this query. Thanks for your help.

    This occurred only to my login. Apple Support advised me to delete the Finder preference list (
    ~/Library/Preferences/com.apple.finder.plist)  and restart. Since then, it is working fine.

  • Opening windows "Access" database files through network

    Is there any way to open windows "Access" database files on my mac through a network to a windows machine? I have the windows for mac software but it doesn't include access.

    Hi,
    As per the description, I understand that your Office 2013 cannot open files through a network share directly.
    I would like to know that how many clients/users are affected by this in your environment. It could be some specific user account settings, that the Office applications are being affected by.
    I'd first suggest you try with a new Windows user profile, then verify result.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How can I open files in folders on iCloud Drive on my iOS8 device?

    Have created folders and moved parts of my documents and pdf files to iCloud Drive on my MAC (Yosemite).
    I can see the folders on my iOS device in Manage my iCloud, I can delete the folders and documents but HOW can I open the documents?
    On Apples homepage I can see a simliar layout as when I log in to iCloud.com with my folders etc. plus the Apple Pages folders.
    But where on my iPad / iPhone do I navigate to find the same?
    Tried to login to iCloud.com on Safari on my iPad but it did not show my folders/files on iCloud Drive.

    So what is the point of upgrading to iCloud Drive when there is no "Drive" on your iOs 8 device? I also added a new folder through Safari on desktop- as instructed by Apple- and I have no way of accessing it on the iPhone! This seems pretty bogus and a huge waste of time!
    And... If Apple was developing an app for the "Drive" why have us upgrade to something you have no way of using?
    And... I did try opening files through apps that allow it but I do not see anything.
    And... Pages docs do NOT show in the "Drive" on Safari.
    WHY?

  • Opening Files in Multiple Instances of Excel 2010

    I've been using multiple instances of Excel 2003 using two monitors for a long time using Windows XP.  I used to do this by opening Excel and opening Excel again from the Start menu and opening files through windows explorer and controlling which instance
    of Excel it would open because it opens based on the recent active Excel instance. For example, I open Excel program instance #1 and then I open Excel program instance #2.  If I click on the Excel program 1 and then go to windows explorer and open
    a file, it will open on Excel program instance #1.  If I click on instance #2 then open a file, it will open on instance #2. 
    However, now I have Windows 7 Pro with Excel 2010.  At first, it would ALWAYS open the file in the first instance of Excel whenever I opened a file from windows explorer.  I found some registry edits that will open a file in a new instance of Excel
    EVERY time. I don't really like either solution.  I want to control the number of Excel instances and determine which instance I want the file to open.  I know I can do this via the Open/File menu in Excel but it's a much more onerous
    way.  I would like to know if there is a way I can make Excel 2010 and Win7 behave the way it did before with Excel 2003 and WinXP.

    Hmm, it seems it´s really hard to undestand, what our problem is all about.
    Even the solution
    http://support.microsoft.com/kb/2636670 isn´t the right answer.
    Ok, i´ll try again:
    - i have 2 Excel-Instances running (can see it with TaskMgr) and i don´t want any
    more Excel-Instances starting
    - for several reasons (data-comparison side-by-side on 2 monitors, etc.), i´d like to control, in which instance
      double-clicked XLS-Documents from Mails, Web-Downloads or (most wanted!) PlSql-Developers
      "Export to Excel"-function should open
    - with Office2003 / WinXP it was very simple: 
    just activate the desired Excel instance before doing
      the double-click or calling the export-function ... the XLS-Document opens exactly in a new window
      of the previously activated Excel-instance
    So it´s not about opening always in new Excel-Instances, therefore all .bat-Solutions or Registry-
    modifications i´ve seen so far wont help. Also the mouse-drag/drop will not work for Web-Downloads
    or Database-Exports, even sometimes not for XLS in Outlook-Mails.
    Yes, i agree:  Win 7 / Office 2010 is a massive downgrade for all users, that need informations on the
    screen (instead of large, fancy icons), that want fast and efficient functionality (instead of clicking around
    through "ribbons" and waiting more than twice a time for same operations, that run in XP/Office2003 simply great)
    After digging the web, experimenting with registry-hacks, etc., i didn´t find any REAL solution.
    That´s why i feel, all those of you (incl. me), that
    have used their machines like described above, have lost.
    Resignated, i wish
    i could switch back to XP/Office2003
    Regards
    CptTom

  • Neooffice won't open file by double clicking on finder

    This just started recently. If I double click on a file and Neooffice is not already open, it will start up and open the file. If Neooffice is already open, it will do nothing. I can still open files through the File->Open menu (much less convenient). Only Neooffice appears to be affected. I have tried reinstalling Neooffice - no difference.
    Any ideas? The system software has been updated much more recently than Neooffice.

    One of the Macs in our office is having the same problem. Nothing changed on the computer...no upgrades to OS or NeoOffice. It just suddenly stopped opening double-clicked files - unless NeoOffice is NOT running. My office manager is close to tears having to quit NeoOffice before opening another file.
    I will attempt to install the latest version of NeoOffice, but, like another poster here, I hate to do that because the last time I upgraded it caused me an extreme amount of trouble.
    One thing I did try that did no good was running a permissions fix through Disk Utility. I'm stumped on what could possibly cause this to just suddenly happen.
    Message was edited by: cvc1968.mac

  • Cannot Drag & Drop in the dock or double click to open files anymore

    Since installing OS X 10.4.3 then .4 I can only open files through the appropiate
    application using OPEN under FILE in that application. Drag & drop into the dock app only gives a momentary flash and a double click on the file/document does nothing. Any ideas? It worked fine in 10.3

    I have a similar issue, but my case is pretty odd (it is to me, anyway). I am in a largely Windows-based company, but work in a small Mac-based department. We recently relocated into new offices, and the new environment is run on a Windows 2003 server (our old offices were on a Windows 2000 server).
    My issue is that when I try to double-click an icon, drag an icon to the Dock, or open with keyboard shortcuts, the application launches, but no file opens. The only way I can open a file is via File>Open through the application.
    My computer is a PowerMac G5 running OS X 10.4.4 -- oddly, our 10.3.x users do not have this issue. And I never had any problems on the W2K server. So I'm sure there's something with the new 2003 server and 10.4, but I've searched through the threads and didn't see anything exactly like my issue.
    Any thoughts? Are there server settings that may have been missed by our IT department? Or is there something I need to set on my Mac? Any help would be greatly appreciated.

  • Script for closing opened files remotely.

    Hello guys. I am new to scripting hope my question will be understandable for you.
    What I'm trying to do is a script that would ask me the directory and name of a file (ex:
    e$\test\test1\test2.pdf) and then check on 50 servers if this file is opened, if yes close it.

    I don't have problems with adobe I just want to close any (.doc,.pdf,.xls.......) opened by users on the sharing. I know how to do it from computer management on the server,but how to do it through cmd?
    You cannot do this with a batch file.  The PowerShell script can do it but only to the share that the file is opened on.  There is no way to close locally opened files.
    You cannot do a general search for a file using the admin share and close the file.  You must enumerate the open files on the share and close the specific handle.  What you see on the share management snap-in is not a file.  It is the handle
    reference to the file.  You can only find it using the net enum API call.  The PowerShell script calls this API from a piece of compiled VB.Net code.
    ¯\_(ツ)_/¯

  • Open and print pdf file through form 6i

    I want to run and print a pdf file through the form. Any suggestion please......
    thanks in advance....
    ifti

    you could try using the DDE package to open the file
    and then print from the actual file location using a host command.

  • Opening a pdf file through form 10g

    Dear all,
    I have requirement to open a pdf file through my form application.
    Ho will i do this?
    What is the procedure to do this??
    Please help me.
    Regards

    Can you tell me where the pdf can be found. Through a webserver or inside the database or is the pdf somewhere else?
    If the pdf is available through an url you could use web.show_document which can open the url/pdf document in a new browser window.
    If the pdf is inside the database you could download the pdf to the client using webutil and then open the pdf document using a host command.
    If the pdf is inside the database or by a url you can also use a forms bean. I've used forms bean bean to unload a pdf from the database and show it inside the forms application. Most important when using a forms bean is that the bean component can show all the fonts which are used inside the pdf. There are some free solutions which can not show i.e. bar codes. The are also some paid components which will do the trick.
    Regards,
    Mark

  • How can I quickly toggle through all of my open files in an application?

    How can I quickly toggle through all of my open files in an application? For instance, if I want to bounce back and forth between three documents that I have open in Microsoft Word?

    You use a combination of OS X Spaces with Exposé to be able to accomplish this.
    Or in your case,  look at using Mission Control
    http://support.apple.com/kb/HT4689

  • How to place tif file through a script in an indesign document?

    how to place tif file through a script in an indesign document?

    Emanuele:
    it works if i just run a script....
    but since i have been using a gui to do some functions, this  place command is not able to place the output tif file back into the  document

Maybe you are looking for

  • How to design universe with tables from two databases using a db link?

    I am building a universe (v3.1) that has tables from two different oracle db instances.  My dba created synonyms for me and there is a database link in place.  I don't know how to get this working in Designer.  I can see the views under my ID when I

  • What does it cost to make a Macbook ?

    I know this may seem random, but I was wondering how much does a Macbook really cost to make? I was asking myself this when I was shopping around dell.com. They have a XPS 12" Notebook Core 2 Duo for 1200. I understand that it is a windows based comp

  • Space constraints

    I have a macbook that is giving me errors that its low on space. its a 150gb Hard drive and i can only account for 50 gigs. is there a way i can find out where this space is? it is all in my user folder somewhere... in the pc i would search all files

  • Applet class not found error

    Dear Techie, I have one Applet , while calling that applet in jsp , i am getting the following error , load : class com.soft.Text.class File not found exception Here that browser telling that not finding the applet class file while loading , In my wa

  • Cant open my Parallels virtual machine

    I do not understand, all of a sudden my Parallels VM is non responsive.  I didnt download Mavericks so I could use my Parallels.  Any ideas how to get it back?  It is desktop 7 Parallels and Windows 7.  My OS is Mountain Lion.