Please help. Javascript to open/place a file onto an open document to a specific layer

Hello,
I would like a javascript that would open and place a PDF file to an active document in Illustrator. I would like it to place it to a specific layer, align it to the art board, and then embed it. Can someone please help?
Thanks in advance.

This should be close to what you want:
var sampleFile = new File( Folder.desktop.fullName + "/SampleFile.psd");
if (sampleFile.exists) { app.open(sampleFile); }
else { alert("Could not locate sample file on the desktop."); }
Tested it out on a Windows machine with no problems.

Similar Messages

  • Please help me, I mistakenly deleted a file.  How can I retrieve my file?

    PLease help me retrieve my file.  I was rearranging some docs into sub-files and mistakenly deleted the main file, thinking the sub-files would still be there and they are all gone.  Lots and lots of docs.  PLEASE HELP ME,!!!  The File name was "Cardis, Jackets, Ponchos& Tops Patterns.  I was using the new Adobe Acrobat Reader.

    I don't believe you can if the only copy is on your iPad.
    You must make backups of files which you have on your mobile devices. Then restore from the backup. Backups could easily made by uploading them to Document Cloud, or backing up to another device.

  • Please help me in Printing a text file :-(

    Hi,
    I have asked this question 3 times, but I didnt get any reply. Can someone please help me in printing a text file to a printer using java. I am able to print it but the problem is the whole file is printed in a messy way. Is there any method in java that prints the text file exactly how it is?
    Thank u very much.

    JavaWorld has a series of articles on how to print using Java: http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-print.html

  • HT1338 trouble logging into my imac desktop, why wont it accept my valid password?? Please help I need to retrieve important files. Thanks.

    trouble logging into my imac desktop, why wont it accept my valid password?? I was using it fine last night... Please help I need to retrieve important files. Many Thanks.

    Do #5 and #6 here others as needed
    ..Step by Step to fix your Mac
    Most commonly used backup methods

  • Why does reader freeze while opening some pdf files and others open instantaneously?

    I use pdf files created from CamScanner and shared from DropBox.  In DropBox, many times (over 50%) while opening the PDF the process freezes and the error message is Adobe Reader is not responding.  If you close the program, and re-open the file, it opens fine.  I have saved these files to my computer and the same issue occurs.  The files are 100-500kb, so I do not think size is the issue.  I have reinstalled Reader (11.1.10) and there is no improvement.

    This appears to have reduced the time to load a document.  Thanks Jimb      From: Anubha Goel <[email protected]>
    To: jimb70395944 <[email protected]>
    Sent: Friday, March 20, 2015 4:37 AM
    Subject: You have been mentioned by Anubha Goel in Re: why does reader freeze while opening some pdf files and others open instantaneously? in Adobe Community
    |
    You have been mentioned
    by Anubha Goel in Re: why does reader freeze while opening some pdf files and others open instantaneously? in Adobe Community - View Anubha Goel's reference to you  Hey jimb70395944, Please try disabling protected mode under 'Edit> Preferences> Security (Enhanced)' and uncheck 'Enable Enhanced Security' option.Then, try again and let me know.  Regards,Anubha
    Participate in the conversation by replying to this email
    To stop receiving these messages whenever you are mentioned, go to your preferences and disable notifications for direct social actions. |

  • WHEN I TRY TO OPEN A PDF FILE, THE READER OPENS  HUNDREDS OF MULTIPLE BLANK PAGES .

    I TRIED TO OPEN A PDF FILE ALL I GET IS HUNDREDS OF EMPTY PAGES
    WHAT IS THE PROBLEM WITH ADOBE 9 READER?
    OTHER PEOPLE CAN OPEN THE SAME MSSG WITH NO PROBLEM

    I DID THE UNINSTALL  AND INSTALL DID NOT SOLVE PROBLEM
    STILL OPEN MULTIPLE EMPTY PGS
    WHAT CAN I DO?
    Date: Wed, 14 Apr 2010 10:28:56 -0600
    From: [email protected]
    To: [email protected]
    Subject: WHEN I TRY TO OPEN A PDF FILE, THE READER OPENS  HUNDREDS OF MULTIPLE BLANK PAGES .
    Something is definitely wrong with your install of Reader.
    A PDF consists of only the number of pages it was created with.  Reader can and will only open those pages... IF it's installed and working properly.
    Opening multiple blank pages from a document which contains none is a clear sign that the software isn't functioning. It's like putting a movie into a DVD player, and your TV starts a picture slide show of your last Summer's vacation. Not possible unless there's something seriously wrong.
    Uninstall Reader 9.
    Use either Adobe's clean uninstaller or Windows Installer Cleanup Utility (http://download.microsoft.com/download/e/9/d/e9d80355-7ab4-45b8-80e8-983a48d5e1bd/msicuu2. exe) to remove all Reader installer files from your system.
    Reinstall Reader 9 from a new download (do not use the old one if you still have it on your system)
    >

  • How do I open a postscript file, like I open an excel file?

    I'm trying to open a file that I saved as a .ps.
    I want to open it in the same maner as I open an excel file?

    To open an excel file, such as *.xls, you need Excel; to open a *.ps file, you need Ghostscript. It's free. You should be able to find it on internet.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • I have reinstalled cc and vhen i want to open a raw-fil the picture opens in PS CS5 insted of in CC2014. How kan i connekt my raw files to CC2014

    I have reinstalled cc and when i want to open a raw-fil the picture opens in PS CS5 insted of in CC2014.
    How can i connect my raw-files to CC2014?

    You should have Bridge CC installed for CC 2014.
    In Windows, right-click on a raw file, and select "choose default program". Photoshop CC 2014 should be listed. Select it. "Always open this file with this program" should also be checkmarked.
    If CC 2014 is not on the list, look for the Browse button at the bottom and go to Program Files > Adobe > Adobe Photoshop CC2014 and click on the Photoshop CC 2014.exe to choose it and add to the list.
    In Bridge CC  Edit > Preferences > File Type Associations, look for your raw file type (CR2 or Nef) and select Photoshop CC 2014 deom the drop-down menu.
    Gene

  • All of a sudden I cant place pdf files in a pagemaker document!

    it seem that this happend after I installed/updated acrobat? or after I installed CS4?  I get an error message that I never received before; "do not know how place this file", then I can select file type. I can place pdf files in the same document that hasnt been saved in the new acrobat version, anyone knows what I shall do?

    Thank you!!
    I produce stuff in Pagemaker and CS4 at the same time until I trust CS4 fully, there are a few things cs4 doesnt do that pagemaker does,  I use a "tagged" import that specifies style and images and that works in pagemaker but not in indesign!
    Thanks again, im happy : )

  • Please help! My Itunes says corrupt file and will not open (IMac 2010). I couldn't fix it by reinstalling so I moved it to trash. It will not delete from my trash as it is saying "Japanese.lproj" is in use. I can't delete or open to close it, what do I do

    Please help!
    My Itunes says there is a corrupt file and will not open (IMac 2010). I couldn't fix it by reinstalling ITunes so I moved ITunes to trash. It will not delete from my trash as it is saying "Japanese.lproj" is in use. I have never opened or used "Japanese.lproj". I can't delete ITunes or open ITunes to close the Japanese.lproj, what do I do? Thank you for any help you can provide..

    It will not delete from my trash as it is saying "Japanese.lproj" is in use. I have never opened or used "Japanese.lproj".
    Interesting. This sort of thing is more common on Windows systems. Taken at face value, one of the iTunes program files (one of the Japanese language resources) is damaged.
    I'd try running your Disk Utility over your startup disk. Does it find/repair any damage? If so can you empty your trash and reinstall your iTunes successfully now?

  • Urgent Help Wanted With My Presentation - Mov Files Will Not Open

    I am a retired lifeboatman, and have developed a fund raising talk focusing on my 35 year involvement with saving lives off the UK southern coast.  I use Keynotes and have never had a problem, until now.  I have another talk next week and thought I would update the presentation.  I have updated to Mavericks and also the latest Keynotes 6.0.1.  When I went to play the presentation, it informed me that some of the .mov files needed to be updated to run on QuickTime.  I pressed the convert button, only to be informed that most of the files could not be upgraded.  When I try to play again, all I get is a blank black screen.  I closed Keynotes and reopened the file in version 5.3, but still the same problem occurred . Most of my video files are of actual rescues and have been transferred from old VHS tapes. and are invaluable to me.  It also means my presentation next week will be without the powerful impact these rescue videos present.  I have searched through the support communities and also on the web, and have tried various suggestions and trial programs for converting the files, but none have been able to provide me with any playable video.  Can anyone please help me to overcome this problems?  Any help would be gratefully received.  

    It's never a good idea to change operating systems and applications without fully testing over a period of time with existing work files first. As Mavericks is such a new operating system, there are a few quirks that are still in place compared to its predecessors.
    Many video types do not play in the new Quicktime 10 player that is included with Mavericks, but version 7 should play any type. Down load and install QuickTime player version 7 for Mavericks, this is a much better movie player than the simple version now included with Mavericks from here:    Download Apple QuickTime Player version 7
    Open the video file in QT 7 and check the video plays correctly.
    Let me know the CODEC used, it is listed against Format in the QT Inspector, (command I or Window > show movie inspector)
    In theory Keynote should now play your video again but let me see how you get on.

  • Trying to restore bookmarks and get error msg windows can't open places.sqlite file. also get same message when trying to open json files for prev sessions.

    Ibelieve remote user deleted cache and now I have no bookmarks. I have tried to reset firefox and was unable to do so. I tried to restore bookmarks through the places sqlite file and windows cannot open the file. I went to old firefox file on desktop and tried to open a previous version of bookmarks and windows could not open file. I still have bookmark toolbar and a lot of my categories bookmarks but they are all empty. My plugins are still there Can you tell me where to direct windows to open sqlite of json files?

    To experiment more safely, could you create a new Firefox profile? The new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should have completely fresh settings databases and a fresh cache folder. If we get your bookmarks into the new profile successfully, you can create a backup and restore it in your regular profile.
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    Any time you want to switch profiles, exit Firefox and return to this dialog.
    Please do not delete anything in this dialog.
    Click the Create Profile button, choose a name like TESTING, and skip the option to choose a folder. Then start Firefox in the new profile you created.
    If you have backups in the JSON format (e.g., bookmarks-2014...json) try to restore one to this TESTING profile. This article has the steps (you will need to use Choose File... to get to the backup):
    [[Restore bookmarks from backup or move them to another computer]]
    Does that work and give you complete results?
    If not, the next thing I would try is to drop in the places.sqlite file you have and see whether Firefox can read it properly.
    First, open up a Windows Explorer window to this new profile folder. You can do that using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * Help menu > Troubleshooting Information
    In the first table on the page, click the "Show Folder" button
    Got the list of files? Okay, leaving that window open, switch back over to Firefox and Exit the browser, using either:
    * "3-bar" menu button > "power" button
    * File menu > Exit
    Pause while Firefox finishes its cleanup -- you will see the timestamps update in the profile folder, then rename '''places.sqlite''' to something like places.old and drop in the places.sqlite file you want to test.
    Start Firefox back up again. Bookmarks?

  • PLEASE HELP! Adobe Photoshop Elements 8 editor won't open!!

    Hi! I'm new to the forums and to Adobe. So, I'm a little clueless about all this stuff.
    WELL
    everytime I click my Photoshop icon the welcome screen appears and the editor begins to load.
    However, the screen doesn't pop up at all. Just the welcome screen. It just shows the Photoshop Elements editor's small window on the bottom of my screen. I click on it and the editor doesn't show up at all.
    It did this a couple of times before. But, now the editor isn't showing.
    My organizer works just fine, but I'm wondering if I can somehow open Photoshop's editor on the organizer?
    If you could please PLEASE PLEASE HELP ME and reply as soon as possible! I would love to draw  and color on Photoshop again as soon as I have fix this problem!
    Thank you so much!
    -Marley

    Try making a direct desktop icon for the Organizer and Editor and that will bypass the welcome screen and any advertising.
    On Windows right click on the desktop and select New >> Shortcut
    Browse to Computer OS C:
    And find the PSE Organizer application in Program Files or Program Files (x86) on Windows 7 - 64 bit.
    Inside the Adobe >> Photoshop Elements Organizer (yellow folder) you are looking for an application file “PhotoshopEementsOrganizer” with six small icons (e.g. representing thumbnails)
    Select it and click OK
    Click next
    Rename by taking out Photoshop Elements leaving just the word Organizer
    Then click finish
    You should now be able to launch directly form the desktop by double clicking on the icon.
    You can set up a similar direct link to the Editor application (.exe file which has the blue PSE icon). As before take out Photoshop Elements just leaving the description Editor and it will show up clearly on the desktop.
     You can keep the standard Photoshop icon which links to the welcome screen but I prefer to delete it from the desktop. If you ever need to get to the welcome screen you simply click Window >>Welcome on the top menu when the application is open.
     

  • Please Help Updating FCPX 10.0.8 files to 10.1.1 - Manually Doesn't Work

    Hello all,
    I tried updating all my Events and Projects from FCP 10.1.1 after using it for awhile (explanation below) and it won't recognize them. After studying online, I've put my Final Cut Events and FC Projects folders in my boot internal Movies drive and on the boot of one of my external drives, but still FCP X 10.1.1 won't recognize them - they are visible but greyed out.
    I have been able to import media from those folders, but without the project files it would be back to the drawing board - no good.
    When I first opened FCPX 10.1.1 I only updated 1 project - a full length doc I was working on, because I didn't want to clog the system while working,
    (I had to get a Digital Cinema Print made quick on my system) and because after reading the Read Me First Notes and white papers, it made it clear that I could update my files manually later.
    So far, no go. Please help. I'm of course - like everyone else - on a deadline, and I have at least 10 short films/projects that are in various stages of
    edits that need to be completed.
    Tom Wolsky, you out there? Kevin Monahan? It's been awhile since I needed advice. Yes, I know, operator error...so it goes. Please help anyone.
    Working on an iMac (Late 2012) 3.1 GHz Intel Core i7 with 16BG 1600 Mhz DDR3 Ram on OSX 10.9.3.
    Cheers and thanks to this community.
    Juri

    UUpdating updates volumes. You don't have to select the project or event. They will always be grayed out. Simply select the hard drive you want to update.

  • Please help with "Error writing the project file. The specified module could not be found." error.

    I am a student.  I've been trying to install and use Visual Studio 2013 Professional for three weeks now and I cannot get it to work.  I am now two weeks behind in my Visual Basic class.  I've installed, uninstalled, ran the repair option... 
    I've tried everything I know how to do.  I just spent 45 minutes on the phone with Microsoft, was transferred four times and finally told I will have to use the forums to find an answer.  I'm almost completely out of patience with this.
    I got the software through the Dream Spark program as a student.  I installed it with the web installer and it appeared to install fine.  When I try to create a new project, I get the error:  "Error writing the project file.  The
    specified module could not be found."
    When I exit the application, I also get:  "The automatically saved settings file 'c:\users\user\documents\visual studio 2013\Settings\CurrentSettings-2015-02-02.vssettings' is not available for write.  You can change this file on the 'Import
    and Export Settings' Tools Options page."
    Please tell me you can help.

    Hi,
    could you please try the points mentioned here:
    http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/0376db8f-4761-4ae5-9af2-98c53216318a#VS_IDE_unexpected_problems to eliminate the possible cause of your issue?
    Please update the result in the forum after you try the method above!
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

Maybe you are looking for

  • Cost distribution on infotype 15

    We have our cost distribution assigned to our positions; we do not use IT0027.  In some cases, we want certain types of payments to be posted to a specific cost center and fund.  We enter these payments on IT0015.  When I try to use the maintain cost

  • BPM Message Split: Does it really work?

    Hello everybody, did anybody of you design a process with a message split that works? If I look the SAPs tutorial "checkSeatFlightAvailability" an test the message-split in IR I CAN'T see that there is a message really splittet into MESSAGE1, MESSAGE

  • Invisible text in graphics

    When I copy-paste text into Animate graphics, I can't see the actual text until I double-click on the text box ... then I can see the text in editing mode. Anyone else had this problem?

  • How to add Abab stack to exiting Java stack

    Hi All, I am having a netweaver Java Stack installed on my system. I would like to install XI - in order to install Xi ,I guess the system should be ABAP + Java. But since I am having java based engine, I would like to add ABAP stack to it. So, my qu

  • *** Instance Number already in use. ***

    Hi, if I start my oracle collaboration suite services, I get the following message after "Starting the Monitor process.": *** Instance Number already in use. *** *** Please try a different Instance number. *** Why? And after this (ldapcheck): Checkin