Access and return of the properties of placedItem.file

I am trying to assign properties to placedItem.file. However, whenever I try to access placedItem.file it prints / returns "undefined is not an object.

I used the alert command to print the object e.g. alert (placedItem.file) and it prints the location of the image file. However, when I try to assign this value to a variable (var exampleName = placedItem.file) it also returns the same error.

I also tried access under file properties, such as file.fullName and file.displayName. It returns the same error. If someone saw would be great. I really just need to return the path to an image to a variable.

I ran the following without problem, such as you encounter.

function test(){

    if(app.documents.length>0){
        var doc=app.activeDocument;
        var s = doc.placedItems[0];
        var info = s.file;

        alert(info);
    }

}

test();

Tags: Illustrator

Similar Questions

  • After I close my browser IE 9 and return to the office, my office programs are not available.

    After I close my browser IE 9 and return to the office, my office programs are not available. I have hover over a program and click, nothing happens for a few minutes... On the other hand, the taskbar and toolbar are all functioning normally. No other problems seem to be present.

    Thank you.

    Original title: freezing of funds

    Hello Manu,

    Thanks for the guidelines to help me solve my problem. Just to tell you that no, I have no error messages when I tried to access the office programs and Yes, I made a few changes in the pc... in the registry with Glary Utilities. That was my main concern.

    However, I tried the AUDITOR of FILE SYSTEM (CFS) and it fixed some problems.

    I also watched method 2 and did a performance using MICROSOFT FIX patch and ran that the Microsoft SECURITY SCANNER both have not reported any problems.

    Also tried method 1, no problem in safe MODE. I didn't think it was a third party program... so I decided to do a restore to an earlier date... then the problem seems to have disappeared.

    Start the pc also seems to be much faster.

    Thanks for the suggestions... I'll keep them as reference just in case...

  • My iPhone6 has convinced himself that he has a helmet connected - how can I convince otherwise and return to the normal setting?

    My iPhone6 has convinced himself that he has a helmet connected - how can I convince otherwise and return to the normal setting?  I tried turning it off and back on after awhile, but did not.

    Double check with a magnifying glass and a good lighting that nothing has been slain. Then, try insertion and withdrawal of your headphones a couple of times. If this does not work, it may be while the shooting went wrong. In this case, make an appointment at the Genius Bar at your local Apple store for the assessment.

  • cannot stop at several new tabs to open boxes at least three every time I have leave and return to the home page or restart Firefox

    cannot stop at several new tabs to open boxes at least three every time I have leave and return to the home page or restart Firefox

    Hi TGreybeard,

    Have you looked at the Knowledge Base article Firefox opens several times empty tabs or windows after clicking on a link ? There is some good information in there that should help you to solve the problem.

    Hope this helps!

  • Satellite C660-1LD: how to recover and return to the factory settings

    Hi guys,.

    I suffer with any problem on any website a few linked words and when I click on it, an ad. opening of site Web which is a little virus I think and the laptop runs very slowly

    I decided to restart the laptop of the t and return to the factory settings.

    Could you please help me how to restart I'm not really good with computers so if you explain step by step it would be fantastic.

    Thank you

    Hello

    Read the discussions here in the forum of Toshiba product recovery.
    In addition, check this documentation how to use HARD drive recovery:

    + How to recover a Toshiba notebook with the HDD recovery procedure.
    http://APS2.toshiba-tro.de/KB0/HTD1303440001R02.htm

  • When I put the time, she can use the internet, she changes the time on the computer and returns on the internet. What can I do?

    When I put the time, she can use the internet, she changes the time on the computer and returns on the internet.  What can I do?

    Not enough information.  You have provided no context.  You don't say what version of Windows you are using and you don't really describe the situation in many details.  Reading between the lines, it looks like you have a child who has time on the Internet you want to limit.  You do not tell us what tools you use to control this limit online, so it is difficult to recommend the right forum for your post.  Please update your message with a more detailed description of what is happening and what you want to do.

    One thing that comes to mind is using Live Parental control with a Netgear router.  See http://www.netgear.com/lpc.  LPC uses the service OpenDNS (http://www.opendns.com/)

  • Closing PDF and return to the folder in Windows 8

    In my work, I often have a folder full of PDFs I open one, read it again, close it and proceed to the following. Before, I just clicked once to close the document and I was still in my file. Now it takes me five clicks to get the closed document and return to the folder. All the world has discovered an effective way to do this?

    Oh it's a miracle - thanks Adobe Acrobat the default program for opening a PDF instead of Adobe Reader, I can close documents with the little X and am back on the desktop with the file. It is very good.

  • I've added two elements (accessibility and analyze) in the Tools menu of right hand.  How to remove or hide?  Or at least rearrange the elements of the toolbar. I want to Sign & certify be the last element/section.  Thank you.

    I've added two elements (accessibility and analyze) in the Tools menu of right hand.  How to remove or hide?  Or at least rearrange the elements of the toolbar. I want to Sign & certify be the last element/section.  Thank you.

    Hi Stacey Nathan,

    To remove the items from right toolbar, click Tools at the top.

    Then open the fall down to the accessibility or analyze and select 'delete the shortcut '.

    In a similar way, select "Add a shortcut" in the Tools drop-down menu to add to the tool on the right pane.

    Let us know if you need help.

    Kind regards

    Meenakshi

  • I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    1. Draw a set of concentric half circles also spaced, stacked so that the outermost is the most remote.
    2. Use the text tool to add text to the outermost path, thus creating a PathType object.
    3. Select all the paths. Type > threaded text > create.
    4. Text tool: click at the end of the text in the object of PathType. Continue typing.

    > If I do that it will not type more.

    A Warp effect is a direct effect. When it is applied to the type of objects, they are still editable text. The chain will deform, however, the text also, not only the paths to which it is attached. Sometimes you want that, sometimes you don't have.

    JET

  • Trying to cancel my subscription but can continue to will return to bike and returns through the cancellation process - tells me I need to call customer service but no phone number is available.

    Trying to cancel my subscription but can continue to will return to bike and returns through the cancellation process - tells me I need to call customer service but no phone number is available.

    Hello Marilyn,.

    Please sign in to your Adobe account and then go to the link below:

    Contact the customer service

    Reference: cancel your creative cloud membership

    Kind regards

    Sheena

  • currency of the row has been changed after cancel create and return to the call of workflow

    JDev 11... 2
    I have two workflow set up very similar to the task of Steve Muench and you will receive. I have master / detail in two tables on a navigation page and a different workflow that create/change for the master and detail (separately). When I create a new master, everything works well except that when I cancel and return to the appellant task, I get the "currency line has changed since the user interface has been made." The cancel task-flow-return has end transcation = rollback and restore savepoint = true and Cancel button immediately a = true. Looks like the controller looking for the newly created folder that has been rolledback. Given that this seems to be a model common vey, what is the best way to not show the warning?

    Thanks a lot for the pointers.

    Hello

    the usecase of yours is the standard demo I show for the workflow and I never had this problem. One reason might be that you keep the scope of the task flow DC to share instead of isolated, in which case restoring impact on the flow of both. If you want to keep shared DC then check that you return to method activity that is re - running the battery for the parent workflow

    Frank

  • What is the font and size of the properties of the project?

    What is the font and size of the properties project content?

    Hello

    The font and size that you see for project or indeed any object is that you have defined in the configuration on the view tab Manager.

    His suffering to MS Sans Serif/8

    Thank you!
    Prashant

  • WMP will open the VTS_01_1.VOB and stop at the end of this file

    I don't know if this is the place to post this question, but it's here.

    I created a web page that lists the cover images all my DVDs that I have on an external hard drive and each cover image is related to the first file VTS_01_1.VOB for this DVD.

    I test page to see how it works for each device I have.  The page works perfectly with my tablet from Samsung, the player on the Tablet, I installed automatically go VTS_01_1.VOB, VTS_01_2.VOB and so on until the movie is done.

    If I use my pc Windows 7, WMP will open the VTS_01_1.VOB and stop at the end of this file, how can I get WMP to continue to the next file automatically?

    Personally, I would check the source code of the Web page of the first.

    Paste the full path to the video_ts.ifo file in a new MS Word document and save it as htm.  Then run the file [it should open in your default browser], then right-click on the page and select view source.  Find the link - it should look like

    href ="... / SomeFolder/VIDEO_TS. IFO "> D:\SomeFolder/VIDEO_TS." IFO

    assuming that D:\SomeFolder/video_ts.ifo is the text that is displayed for the link

    Then go to your actual Web page and discover its source to verify that the link contains this model.

    If the solution is not as simple as that, then you will need to post a question in the section Web & networks of this forum I don't know enough about writing for the Web page.

    To increase the chances of getting there help please include a description of what happens when you try to click on the link - rather than 'will not work.

  • In the notification area, has changed for Exchange 4 with no internet access and return to network 3 with access network 3 so far.

    When I start the computer and go to the Office to join I / E 10 on the notification area indicating the access to internet, the 3 network icon has been

    change to the 4 network with no access to the internet and to this day it has changed to network 3 with access after a short period.  I had some

    pages not being not able to view also. This happens not all the time well.

    Omer

    Hi, Omer,.

    You are using a wired or wireless network?

    This problem may occur if there is more than one wireless network set up on your computer.

    If you use a wireless network, I recommend you to uninstall and reinstall the wireless network and check if that helps.

    1. Click Start and select Control Panel.

    2. open the network and sharing Center.

    3. click on manage wireless networks.

    4 remove all wireless network listed in this list.

    5 restart the computer and you reconnect to your wireless network.

    Keep us updated on the status of the issue.

  • How do to activate 'VAPP Options' on an existing virtual machine, and then add the properties that will be passed down through the OVF - ENV. XML



    I'm trying to understand vSphere PowerCLI how to activate the "Options of VAPP" on an exsiting VM (in this case a model freshly cloned) then add properties and select cdrom of the FVO data access such as when the virtual machine is running the FVO - env.xml contains the properties in the CD-ROM drive.

    If I use the vSphere client and open the virtual machine settings and click on the tab 'Options' and then select "Options of VAPP" and change the setting to "Enabled" and then select 'VAPP-> Advanced Options' and click on the button 'Properties' on the right, I can add the properties and then I can change them vsphere PowerCLI, but given that these actions are not retained if I clone the virtual machine I need a way to put these in place of vSphere PowerCLI without using the vSphere client to do.

    Thanks in advance for the help!

    Mike

    You can use the vSphere API to activate the 'Options of VAPP"on an existing virtual machine, and set properties. For example:

    $spec = new-Object VMware.Vim.VirtualMachineConfigSpec

    $spec.vAppConfig = new-Object VMware.Vim.VmConfigSpec

    $spec.vAppConfig.property = new-Object VMware.Vim.VAppPropertySpec [] (1)

    $spec.vAppConfig.property [0] = new-Object VMware.Vim.VAppPropertySpec

    $spec.vAppConfig.property [0] .operation = 'Add '.

    $spec.vAppConfig.property [0] = new-Object VMware.Vim.VAppPropertyInfo .info

    $spec.vAppConfig.property [0].info.key = 0

    $spec.vAppConfig.property [0].info.classId = "Property1ClassID".

    $spec.vAppConfig.property [0].info.instanceId = "Property1InstanceID".

    $spec.vAppConfig.property [0].info.id = "Property_1.

    $spec.vAppConfig.property [0].info.category = "Property1Category".

    $spec.vAppConfig.property [0].info.label = "property 1.

    $spec.vAppConfig.property [0].info.type = "string".

    $spec.vAppConfig.property [0].info.userConfigurable = $true

    $spec.vAppConfig.property [0].info.defaultValue = "Property1DefaultValue".

    $spec.vAppConfig.property [0].info.value = «»

    $spec.vAppConfig.property [0].info.description = "Property1Description".

    $vm = get-VM-name vm3

    $vm. ExtensionData.ReconfigVM_Task ($spec)

Maybe you are looking for