About Folder object path

Hello ,
My name is Avi. I want to create a folder on desktop for mac as well for windows. I want to create this folder using javascript. I am using cs3.
When anybody try to run this script on any operating system the folder will be create on desktop or any where as per users requirement.
Is there any logic between paths of mac osx and windows directory. Using that i can create a folder on any operating system.
I want to create a single script which can use for both operating system.
I knew how to create a folder using FILE SYSTEM ACCESS
create a folder object(folderobj)
To create a folder use folderobj.create().
Is this information sufficient to understand my problem or i need to explain it more.
Thank you for your co-operation.

Thank you Kasyan.
I have one more question for you.
I created a edittext field using scriptUI and i want to get the data from that textfield.
I use variable editcontets to get the data but in this case it not working. I am posting my script. Please let me know if there is any thing wrong i am doing.
var g3 = myDlg.msgPnl1.add( "group" );
myDlg.msgPnl1.titleSt = g3.add('statictext', undefined, 'Name: ');
myDlg.msgPnl1.titleEt = g3.add('edittext', undefined,'Test');
var amit = myDlg.msgPnl1.titleEt.editContents;
alert(amit);
myDlg.msgPnl1.create = g3.add('button', undefined, 'Create');
myDlg.msgPnl1.titleSt = g3.add('statictext', undefined, ' ');
when you run the script whatevery data in that text field will come o the variable amit.
When i am trying to run this script i am getting alert as "undefined".
I do not why please help me in this matter as well.
Thank you,

Similar Messages

  • Encryption of folder object in J2ME

    hello, is there an API that i can use to encrypt/decrypt the folder object (not the files inside the folder) using J2ME (currently using bouncycastle)?

    prasad_at_sun wrote:
    Thanks for your reply. In my case we have the application server setup at client side only (third party is testing our application and according to their need we have to handover the things in their hands) where i am deploying jar/war files. I am still without solution..What don't you understand about "You can't do it." ?
    It's very simple really - whatever the language it makes no sense to encrypt the 'code' since to execute the code the execution engine needs to decrypt the 'code' before it can execute it so it has to have access to the decryption key. If the execution engine has access to the key so does anyone who has access to the execution engine.

  • "Invalid object path" Driver Import

    PS P01:\> Add-CMDriverToDriverPackage -DriverName $item.LocalizedDisplayName -DriverPackageName $HWType -verbose
    VERBOSE: Executing WQL query: SELECT * FROM SMS_DriverPackage WHERE Name='Microsoft.HyperV.W7X64'
    VERBOSE: Query options: ExpectResults
    VERBOSE: Performing the operation "Add" on target "DriverToDriverPackage: Name="Microsoft.HyperV.W7X64"".
    VERBOSE: Executing method 'RequestLock' against class 'SMS_ObjectLock'
    VERBOSE: Input properties:
    VERBOSE: -- :: ObjectRelPath == SMS_DriverPackage.PackageID="P010009C"
    VERBOSE: -- :: RequestTransfer == True
    VERBOSE: Output properties:
    VERBOSE: -- :: AssignedMachine == <SERVER>
    VERBOSE: -- :: AssignedObjectLockContext == b72216b2-de12-453a-98d6-89bbcdd88443
    VERBOSE: -- :: AssignedSiteCode == P01
    VERBOSE: -- :: AssignedTimeUTC == 10/28/2014 10:19 PM
    VERBOSE: -- :: AssignedUser == <USER>
    VERBOSE: -- :: LockState == 1
    VERBOSE: -- :: RequestID == 3F595BA4-BEAF-4707-B824-A786AD02EAD5
    VERBOSE: -- :: RequestState == 10
    VERBOSE: -- :: ReturnValue == 0
    VERBOSE: Lock acquisition on 'SMS_DriverPackage.PackageID="P010009C"' returned: Granted
    VERBOSE: Executing WQL query: SELECT * FROM SMS_Driver WHERE LocalizedDisplayName='Microsoft Hyper-V Network Adapte
    r'
    VERBOSE: Query options: ExpectResults
    VERBOSE: Query 'SELECT * FROM SMS_Driver WHERE LocalizedDisplayName='Microsoft Hyper-V Network Adapter' ' processed
    1 results.
    VERBOSE: Executing WQL query: Select CTC.ContentID From SMS_CIToContent As CTC Join SMS_Driver As DR On DR.CI_ID=CT
    C.CI_ID Where DR.CI_ID=16786189
    VERBOSE: Query options: None
    VERBOSE: Executing method 'ReleaseLock' against class 'SMS_ObjectLock'
    VERBOSE: Input properties:
    VERBOSE: -- :: ObjectRelPath == SMS_DriverPackage.PackageID="P010009C"
    VERBOSE: Output properties:
    VERBOSE: -- :: ReturnValue == 0
    VERBOSE: Lock release on 'SMS_DriverPackage.PackageID="P010009C"' success: True
    Add-CMDriverToDriverPackage : Invalid object path
    At line:1 char:2
    + Add-CMDriverToDriverPackage -DriverName $item.LocalizedDisplayName -DriverPacka ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (Microsoft.Confi...rPackageCommand:AddDriverToDriverPackageCommand) [
    Add-CMDriverToDriverPackage], WqlQueryException
    + FullyQualifiedErrorId : UnhandledExeception,Microsoft.ConfigurationManagement.Cmdlets.Osd.Commands.AddDrive
    rToDriverPackageCommand
    Does anybody know a workaround for this bug?
    Same error in Add-CMDriverToDriverPackage and Import-CMDriver
    How will be the WMI Commandlet?
    Please Help. THX

    Hi,
    Please refer to the link below:
    Import-CMDriver
    http://technet.microsoft.com/en-us/library/dn151073(v=sc.20).aspx
    More info:
    ConfigMgr Driver Injector
    This tool will help you to capture installed drivers on your workstations and then will automatically import them in ConfigMgr 2012.
    http://gallery.technet.microsoft.com/ConfigMgr-Driver-Injector-aae7d17d
    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.
    Hi Xin Guo,
    thx for post, but you can try the syntax and it will fail, cause what i read there is since 2012 R2 CU 3 some changes also in SQL and so the command with Paramater
    -DriverPackageName
    will not work correctly and abort, so the Technet Page is here not the Solution about.
    Also i don't need an extra Tool, cause i have all driver's but for the massimport i want to use wmi, powershell.
    Help :)

  • Uninstallation via SCCM leaves behind "folder object"

    Hi
    I know this isn't specifically sccm related but it does happen via sccm.
    I am upgrading some client software from an older version to the newest. 
    on a lot of machines I am seeing the following..
    1. the application uninstalls the old software
    2. somehow the process leaves behind the folder object.. by this I mean... the uninstaller actually removes the folder BUT somehow windows still thinks the folder is there.. all security settings etc. are wiped and there's no way to access the folder.. with
    ANY account. 
    This means the new msi installation fails because it cannot access/create the same folder to install..
    3. after a reboot the folder object is gone and the installation works perfectly..
    Has anyone seen this kind of behaviour?  and what can I do about it? 
    Kindest regards, Martin

    Hi Gerry.. 
    I know.. but since sccm guys(!!) often also work with msi deployment/package deployment I was hoping this would be a good place to ask :-)
    There is no additional switch missing.. I actually spoke to the developer and he was at a loss as to what was happening.. This is a program I have installed and updated many many times.. each time I use the same switches and each time everything works fine.. 
    Torsten... I determine it by rebooting.. and the folder is then gone.. 
    somehow the folder-object is getting completely locked down.. I can see the folder but NO WAY access it.. as domain admin I do not have access to view security page, nor can I take ownership, delete it, open it, or anything else. 
    Kindest regards, Martin

  • In Openscript I am not able to use a Variable in object Path

    Hi,
    I have an object :
    "/web:window[@title='Repricing Pattern Details -New']/web:document[@name='rhsContent']/web:form[@id='newRepricingPatternRPAT' or @name='repricePatternsForm']/web:select[(@id='selectRPA1' or @name='repricePattern.absoluteRepriceEvent[0].repriceType') and multiple mod 'False']"
    in this 'selectRPA1' and [0] are the numeric value which keeps changing.
    How can I handle this to make the value get changed for every loop.
    I have used below thing, this is not giving any error to me in script but while execution it is saying " Invalid Object Path".
    String OBJ_REPRICING_TYPE = "/web:window[@title='Repricing Pattern Details -New']/web:document[@name='rhsContent']/web:form[@id='newRepricingPatternRPAT' or @name='repricePatternsForm']/web:select[(@id='selectRPA"+LEVEL_ADD+"' or @name='repricePattern.absoluteRepriceEvent["+LEVEL+"].repriceType') and multiple mod 'False']";
    Thanks in advance.
    Regards,
    Abhay

    Hi,
    try using selectRPA* and [*] in your xPath
    ie,
    "/web:window[@title='Repricing Pattern Details -New']/web:document[@name='rhsContent']/web:form[@id='newRepricingPatternRPAT' or @name='repricePatternsForm']/web:select[(@id='selectRPA*' or @name='repricePattern.absoluteRepriceEvent[*].repriceType') and multiple mod 'False']"
    Cheers,
    Deepu M

  • 2 CF servers,but different remote object path for flash

    I have 2 CF servers,but different remote object path for flex in each server.
    Eg for one flex program in my dev server I define the remote object as follows
    <mx:RemoteObject id="myService" destination="ColdFusion" source="cfide.flex.path_to_file" showBusyCursor="true">
    But in my live sevrver I have to do this.
    <mx:RemoteObject id="myService" destination="ColdFusion" source="path_to_file" showBusyCursor="true">
    How can I make both the same?

    Thanks mate,
    I tried    <use-mappings>true</use-mappings> and restarted the server but its still not working
    I think this is the spoiler:
    ColdFusion mappings apply only to pages processed by the ColdFusion Server with the cfinclude and cfmodule tags. If you save CFML pages outside of the Web root (or whatever directory is mapped to "/"), you must add a mapping to the location of those files on your server.
    from
    http://www.adobe.com/livedocs/coldfusion/5.0/Installing_and_Configuring_ColdFusion_Server/ basiconfig9.htm
    so that ruins it for flex I guess?

  • Getting information about an object from JList

    Hi
    I have created a movie application and i have a JList displaying all registered movies, it uses a DefaultListModel to display these.
    I want to be able to click on an element in the JList and then push a button called "Show movie details" to display all information about the selected movie.'.
    Every new movie is added to the DefaultListModel as an object with "Titlle", "Genere" etc. If someone click on a movie, what do i do to get information about which object that was clicked. All i can see is that integers can be returned with the getSelectedIndex/Value methods. If i use one of these methods to get the object from the DefaultListModel, that would work i guess, but what when someone deletes a movie in the middle of the JList, then the indexes wouldnt match.
    Can someone help me out here? :)

    I get a big fat exception when trying to cast the returned object to a Movie object which im using.
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.S
    tring cannot be cast to Movie
    ...sure that this is the way to do it? If so, what am i doing wrong..

  • Import-CMDriver fails with "Import-CMDriver : Invalid object path "

    I am attempting to use Import-CMDriver but it fails with:
    "Import-CMDriver : Invalid object path "
    I can see that it is adding the driver to the catalog, but it is failing to add it to the package and I can't figure out why.  I have tried with different inf files and deleted and created different packages.  It just doesn't work.  Here is
    the command that I am running.  I don't see any reason why it wouldn't work.
     Set-Location abc:
        foreach($iniFile in $infFilesToDeploy){
            $cmDrivePackage = Get-CMDriverPackage -Name "PackageName"
            $cmDriverCat = Get-CMCategory -CategoryType "DriverCategories" -Name "PackageName"
            $cmDrivePackage
            $iniFile
            Import-CMDriver -UncFileLocation $iniFile -ImportDuplicateDriverOption AppendCategory -AdministrativeCategory $cmDriverCat -EnableAndAllowInstall $True -DriverPackage $cmDrivePackage -UpdateDistributionPointsforDriverPackage $false
    As I said, it is seeing the ini file since it it importing it into the catalog.  It just won't add it to the package.  It also leaves the package in a locked state if I try to modify it after I run this command.
    Anyone have any ideas why this command doesn't function?
    Thank you for your time.

    Hi,
    What's the version of your SCCM? I ran this command "Import-CMDriver -UncFileLocation... " on my SCCM 2012 R2 CU1. I didn't get the error above.
    I also tried the command below, it ran successful.
     $d=Get-CMDriverPackage -Id "..."
     Import-CMDriver -UncFileLocation "\\..." -DriverPackage $d -EnableAndAllowInstall $true
    Best Regards,
    Joyce
    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.

  • About ABAP Object

    Hello All,
    i have some question about ABAP Object.
    What is the meaning of friend class and singleton?
    Regards,
    Luke

    Hi,
    The addition Friends makes class class a friend of classes classi and or interfaces ifaci.At the sam time, all subclasses of classes classi, all classes that implement one of the interfaces ifaci and all interfaces that have one of the interfaces ifaci as a component interface become friends of class. you have to specify at least one class or interface.
    The friends of a class have unrestricted access to the protected and private components of that class, and can generate unrestricted instances of the class.
    The friends of class are not automatically friends of subclasses of class. the addition Friends does not make class a friend of its friends.
    Thea ddition global is allowed only when you use the addition public for the global class of a class pool at the same time.You can list other global classes and interfaces from the class library after global friends.This addition is generated when the Class Builder creates a global class and you specified friends at the corresponding tab page of the class Builder.
    `
    In the example , classs c2 is a friend of interface i1, and therefore also of the implementing class c1. It can instantiate these objects and access their private component a1.
    interface i1.
    endinterface.
    class c1 definition create private friends i1.
    private section.
    data a1(10) type c value 'Class 1'.
    endclass.
    class c2 definition.
    public section.
    interfaces i1.
    methods m2.
    endclass.
    class c2 implementation.
    method m2.
    data oref type ref to c1.
    create object oref.
    write oref->a1.
    endmethod.
    enclass.
    Kindly Reward Points If You Found The Reply Helpful,
    Cheers,
    Chaitanya.

  • How do I batch-rename objects/paths (not just layers)?

    Question from a complete n00b:
    I need to rename a large number of selected objects/paths. This is because I want to use another script that only works when my objects have the default name, "<Path>". So really, I just need to remove existing names of objects.
    This other script is here:
    http://kelsocartography.com/blog/?p=325
    Of course, I could manually remove names by double-clicking on objects in the layers palette and deleting the name, but that's no fun.
    I've found some great scripts for renaming layers, but nothing for non-layer objects.
    First, I'm trying to remove names from ALL objects in the document.  once that's working, I want to only remove names of selected objects.
    Here's my very simple non-working javascript - (the whole thing):
    app.activeDocument.pageItem.name = "";
    my test Ai file is also really basic: a few rectangles, some of which have been named in the layers palette.
    When I run this, I get:
    Error 21: undefined is not and object.
    Line: 1
    ->     app.activeDocument.pageItem.name = "";
    I've tried a number of other approaches, and either get "undefined is not an object" or nothing happens. 
    pageItem has "name" as a writable property, so I think it's what to use, but I really don't know what I'm doing - help!
    I'd also happy to use actions, but I'm stuck on that too.

    Thanks!!
    Here's my final script:
    ////START SCRIPT////
    //how to use: select objects that you want to rename, then run script
    //note - new name may not display until you unselect objects
    var docRef = activeDocument;
    for (var i=0; i < docRef.pageItems.length; i++)
           if (docRef.pageItems[i].selected == true)
                   docRef.pageItems[i].name = "";
    ////END SCRIPT////
    currently, it renames with no text.  In other words, it removes existing names.
    One thing that was messing me up was that new names are not immediately displayed - you have to unselect your selected objects before names in the layers palette refresh.

  • More Details about Info Objects

    I want to enrich my technical skillset.
    So could you experts pls guide me in more detail about Info Objects in SAP BI
    Thanks,
    Vijayakumar

    HI,
    Actually the info given on thatpage is a copy paste of the information from Help.sap.com.
    [Editing InfoObjects|http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a63cde07211d2acb80000e829fbfe/frameset.htm]
    [Creating InfoObjects: Key Figures|http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a63b3e07211d2acb80000e829fbfe/frameset.htm]
    And So on
    Regards,
    Gaurav

  • Selection Tools: unexpected duplicate objects & paths (CS5)

    Hello,
    Illustrator has gone insane.. Anytime I use either Selection Tool, the object or the path selected is automatically duplicated and the original object/path is left untouched. Example: I create a square shape object; select the object with the Selection Tool and try to move it. The original square remains as it was and a new square is created.
    Any suggestions? I've tried rebuilding Illustrator Preferences any number of times in a variety of ways but nothing helps.
    Thanks,
    Shaun

    I thought the same and I switched out the keyboard, but no change.
    However I then ran a 'deep clean' with Applejack (a single-user troubleshooter tool for Mac OS) and after a restart all appears to be normal. I suspect there was a corrupted cache file somewhere which was making Adobe apps think the alt key was down.. (Odd that no other apps had issues though.)
    At any rate the issue has been resolved and hopefully the post will help someone else someday.
    -S

  • How to get folder(directory path only not file path) from local file system

    Hi Firends,
    How to get folder(directory path only not file path) from local file system , whenevr i will click on browse button.
    Please give reply for this one , if anybody knows.
    Thanks,
    Anderson.

    Hi Anderson,
    if you're using flash.filesystem.FileReference - then it is run in black box - except of filename, size and creation data (and few other properties available after some operation succeeded). This is part of security features in Flash runtime (described in header section):
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html
    This for example implies that user can download a content to local machine - but that content cannot be loaded back into Flash runtime. For this you would need either Air runtime flash.filesystem.File:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml
    (so you would created Air runtime based application: desktop or mobile but not web, even as standalone project) or you would need one of 3rd party tools that add file access/file information features to standard Flash runtime applications converted to standalone native applications.
    hth,
    kind regards,
    Peter

  • About Order object in ATG

    Hi,
    I have some confusions about Order object in ATG. Please see -
    When actually ATG creates an Order object and how?
    Is there any scenario where we should use synchronize on Order object?
    An ItemPricingEngine invoked through a price droplet. How/when an OrderPricingEngine gets invoked?
    Thanks.

    Hi,
    Don't get confused that we need to synchronize only those things which are shared between multiple users.
    We should synchronize order because there should not be more than one thread/process updating it , else you will get inconsistencies and invalid version exceptions as already pointed by gurvinder.
    About your 3rd point :
    pricing can be invoked in many ways from many places , like droplet , formhandlers , pipelines etc.
    Enable loggingdebug on important components like OrderPricingEngine , ItemPricingEngine , Pricing tools and various Pricing calculators and study the logs  then you will be clear on what is invoked and when is invoked.

  • Quick Question about Folder Framework Services

    Ok so I set up and am learning how to use RIDC to talk to UCM, I don't really need help in that regard.  My question is I'm reading the Folders Services documentation and was reading "FLD_CREATE_FOLDER" and was at a loss.  One how would I find the GUID for the parent folder, and second I'm not seeing a way to add the name of the new folder.  I'm at a bit of a loss with this one hoping somone can point me in the right direction.

    Hi ,
    To get the GUID for parent folder you can use either the service FLD_INFO along with IsJava=1 parameter or run the DB query on FolderMetaDefaults table .
    1. Service part :
    From the browser use the following service call :
    http://ucmhostname:port/cs/idcplg?IdcService=FLD_INFO&path=/Folder1
    here path refers to the hierarchical structure for the actual one under which we need to create a new one .
    For eg : if Folder1 is created under root and under that we have to create a new sub-folder then path=/Folder1
    If under Folder1 we have subFolder1 then path =/Folder1/subFolder1.
    From that under ResultSet "FolderInfo" search for fFolderGUID and use that as the value for fParentGUID
    Sample code : https://forums.oracle.com/thread/2554885
    So the code would be like this :
               dataBinder.putLocal("IdcService","FLD_CREATE_FOLDER");
                dataBinder.putLocal("fParentGUID","FLD_ROOT");
                dataBinder.putLocal("fFolderName","RIDCFF1");
    Above example creates a new folder under root itself .
    Hope this helps .
    Thanks,
    Srinath

Maybe you are looking for