Publish a web deploy package using Deploy tool (msdeploy.exe) and *.PublishSetting file

Hi,
I have created a web deploy package (*.zip) file using Visual studio. Also I have created a website in Azure and got the publish settings file.
Now say, I have only web deploy package and publish settings file. How can I publish this package to Azure website using the command prompt with msdeploy.exe command?
Im trying something like the below:
msdeploy.exe -source:package='D:\WebDeploy\WebProfile.zip' -dest:auto,computerName="http://webdeploytestsite.azurewebsites.net:443/msdeploy.axd?site=WebDeployTestSite",userName="$WebDeployTestSite",password="***********",authtype="Basic",includeAcls="False"
-verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"D:\WebDeploy\WebProfile.SetParameters.xml"
I'm getting the below error!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Error: Could not complete the request to remote agent URL 'http://webdeploytests
ite.azurewebsites.net:443/msdeploy.axd?site=WebDeployTestSite'.
Error: The underlying connection was closed: An unexpected error occurred on a r
eceive.
Error: Unable to read data from the transport connection: An existing connection
 was forcibly closed by the remote host.
Error: An existing connection was forcibly closed by the remote host
Error count: 1.

Hi,
As you are using http:// connection instead of https:// in your connection, check the below provide solutions:
1. In the publish profile window, You need to check the "Allow untrusted certificate" checkbox and the publish should succceed
You may refer following link for more information:
http://msdn.microsoft.com/en-us/library/ff683672.aspx
2. Alternatively, add the –allowUntrusted flag on the command.
And, we always recommend you to use 'PowerShell' to run the commands instead of normal 'CommandPrompt'. Also, you may temporarily disable the Antirvius in your computer for testing purpose and check if it might be blocking the connection.
Regards,
Manu Rekhar

Similar Messages

  • How to package/inlcude C++ .exe and .dll files in a Java Web Start App?

    Hello,
    I have a Java Web Start application that runs fine if the application is only 1 .jar file.
    But I have a need to also run C++ .exe and .dll file from my Java application.
    I wonder if someone could please tell me how to package/include C++ .exe and
    .dll files in my Java web start application?
    Thank you and Best Regards,
    Akino

    You need to place the EXE and DLLs inside the jar.
    Java cannot execute them from the jar. They have to be extracted (see Class.getResourceAsStream) from the jar and copyied into the target machine file system, perahps to the temp directory. Now you can execute them using Runtime.exec() or ProcessBuilder.start().
    Edited by: baftos on Jan 14, 2011 6:49 PM

  • How to use pen tool in Adobe and Illustrator?

    How to use pen tool in Adobe and Illustrator?

    With the pen tool in Indesign, is there a way of making the points not join if you want to make a few single lines?

  • I used to be able to use the tools, edit image and highlight certain items in the pdf photos. why can I not now?

    I used to be able to use the tools, edit image and highlight certain items in the pdf photos. why can I not now?

    Usually Acrobat has linked to PhotoShop to do the photo editing. You might check the updates for Acrobat and PhotoShop.

  • Java JDK 6 without tools javac.exe and jdk.exe in bin directory!

    I miss in the new current JDK 6 download the tools jdb.exe and javac.exe in the bin directory. Is that an incomplete download?
    Wolfgang

    I miss in the new current JDK 6 download the tools
    jdb.exe and javac.exe in the bin directory. Is that
    an incomplete download?You have downloaded a client version of java. You need a development version. You should probably go back and download again, this time making sure that you're getting the entire JDK

  • HT4847 Can i use icloud as a server and share files with others as it was possible before?!

    Can i use icloud as a server and share files with others as it was possible before?!

    iCloud does not provide general file storage and sharing. You will need to find a third-party alternative - this page examines some options:
    http://rfwilmut.net/missing3

  • How different Web Services can use a class which parses an XML file

    I am using RAD6.1 for developing and deploying web services.As I am using 15 web Services which uses a common class which is used to parse an XML file.As this XML file should be parsed only once and should be used by all the web services.I have made this common class as Singleton but it works as singleton for only one webservice and for other web service again it is parsing the xml file.I want to parse this xml file only once and used by all the web services.In my case tis file is parsed 15 times for 15 web services, but it should be parse donly once and used by all 15 services.Please give me the solution.
    Thanks and Regards
    Sayeeduzzaman

    Hello,
    the 15 Webservices should have a static attribute which contains the xml:
    private static String xml;
    then initialise the xml like this:
    if (xml == null)
    xml = parseIt();
    else
    //do nothing, XML already initialised!
    }

  • How to use an external hard drive and copy files to the disk for mac and windows??

    please tell me how to copy files to external hard disk and use it for both mac and windows. there is the fat32 formatting bt i dont wanna use formatting because i already have a lot of content on the exteral hard disk. thank you.

    It is simplest to have the HDD formatted to noe common to both Mac an PC.  ExFAT is one.  But to do that will erase all data on the HDD.
    If the HDD id formatted NTFS, Mac can read but not write to it.  The solution then is to use a third party application such as Paragon or Tuxera which will overcome that obstacle.  These applications do have mixed reviews.
    Ciao.

  • Getting Web Start to use JDK's javaw.exe, not JRE's

    On Windows, I need a Web Started app (actually, my Glossitope desklet) to run with the JDK's javaw.exe, not the JRE's, because I use the Java Compiler API, which is more or less a no-op in the JRE. I've tried using the Java Control Panel to change the Java Application Runtime Settings path to use the JDK path rather than the JRE's, but the change never takes. What, if anything, can I do to get JNLP's to run with the JDK?

    Well, using ToolProvider is exactly what I'm trying to do. The program lets you type some Java code, then compiles it and runs it (with help from a custom class-loader). The problem is that when run from Web Start on Windows, ToolProvider.getSystemJavaCompiler() returns null. I can see from the Control Panel that Web Start's path to Java uses the JRE path, not the JDK, and I suspect that's the reason I'm getting null for the compiler.
    I suspect bundling the tools jar is exactly what I need to do, and I also suspect the license forbids that.
    Works great on the Mac, FWIW.
    Thanks for the reply.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • CS6 Photoshop crashes when trying to use type tool or opening up .psd files. Any ideas on how to fix it???

    I have Adobe CS6 Design Standard (MAC). I have had it about a year and a half and use it a ton! Just yesterday while I was using Photoshop, I clicked to use the type tool, the "initializing type tool" box popped up then a few seconds later the whole program crashed. I tried opening it back up and every time I did it just kept crashing. I restarted and shut down my computer, but still no solution. I even uninstalled the program then reinstalled. Same thing. All of my other tools work just fine (brush tool, eraser, crop, etc.). Also, when I try to open up a .psd file the program crashes as well.
    I tried searching the internet for solutions, but couldn't find much. One suggestion was to delete the Adobe Photoshop program settings file, I did that but it still didn't work. After each crash a report would be sent to Adobe, then another window would pop up saying that Adobe has found a solution for the recent crash. There is a link that says "please CLICK HERE for further details" but the link doesn't take me anywhere. It just doesn't work!
    Has anyone had this happen to them? Any ideas on how to fix it? I really need to get this up and running again!!!

    This is a user to user forum and Adobe Staff does drop by.
    First thing to try is Reset the Type Tool by right-clicking on its' icon in the Options bar.
    If you still have problems, it could be related to fonts. Here is a step by step troubleshooting help doc for that.
    Troubleshoot fonts | Photoshop CC 2014, CC, CS6, CS5
    And basic troubleshooting: Photoshop: Basic Troubleshooting steps to fix most issues
    Gene

  • While using marquee tool to cut and past section to new layer, outline stays transparent

    Hello,
    I am testing the trial version of Photoshop CS5.5 and I am experiencing a weird issue while using the marquee tool while selecting a portion of an image, cutting that section and pasting it to a new layer.
    First off I am running Windows 7 Ultimate 64 bit, 2.8Ghz Dual Core Processor, 4 Gigs Memory, 2 Gig Video card and current on updates with a fresh vanilla install of CS5.5.  Not filters or plugin installed.
    Step by step of issue is as follows,
    I take an image on layer 1 and while using the marquee tool select and area on that image.  I want to cut and Past In Place that selection on a new layer, layer 3. 
    This will allow me to insert another layer, layer 2, in between layer 1 and layer 3 and show what ever I place on layer 2 but still have a complete background if the image does not fill the entire transparent section.
    A good example is a wanted poster.  You have your picture frame with the Wanted letters and reward.  In the center you have a transparent square.  In the back you have a black background.  In between the frame and the background you place a face.  The face will not fill the entire sqaure so you will see some of the black back ground.
    Now the problem appears to be that the dotted line of the marquee selection makes so you can see your selection stays transparent or deletes the ares directly unter it when you cut and past to a new layer.  The transparent outline looks to be the same size of the dotted line when that selection is selected.  I have looked and searched for this promblem and resolution but can not see one. 
    The picture below is the result after I deselect the area.  You can see just above another section that I tried to cover up but did not get it all.  
    This is driving me nuts and I just can not figure out what is causing this behavior.  If I try and stretch the section, it skews the contents out of proportion.
    An suggestions or information would be greatly appreciated!
                                    Marquee Selection, Animated Lines                                                                Cut And Past In Place And Selection Deselected
    Thanks

    Instead of cut, one way is to duplicate the layer and add a layer mask from the selection. Alt click on the layer mask icon at the bottom of the layers panel to add a Layer Mask>Hide Selection.
    Then you can put a layer in the middle.
    The reason your seeing what's in your screenshot is the selection is anti-aliased,

  • Invoking WSDL using OdiInvokeWebService tool in ODI and ORMB integration

    I did  all the configuration to invoke WSDL through OdiInvokeWebService to get response in the XML file got the following issue
    when in request file i send the XML with request parameter got via a Advance feature of the OdiInvokeWebService  tool.
    input file as
    *<?xml version = '1.0' encoding = 'UTF8'?>*
    *<CMODIXAIINTRequest>*
    *<CMODIXAIINT>*
    *<personID>23423423</personID>*
    *</CMODIXAIINT>*
    *</CMODIXAIINTRequest>*
    ODI-1217: Session OdiInvokeWebService (68001) fails with return code 7000.
    ODI-1226: Step OdiInvokeWebService 1 fails after 1 attempt(s).
    ODI-1241: Oracle Data Integrator tool execution fails.
    Caused By: com.sunopsis.wsinvocation.SnpsWSInvocationException: AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}VersionMismatch
    faultSubcode:
    faultString: Version Mismatch
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:Version Mismatch
         at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:103)
         at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1328)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:375)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:321)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
         at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:1792)
         at com.sunopsis.wsinvocation.client.impl.axis.AxisClientImpl.invoke(AxisClientImpl.java:152)
         at com.sunopsis.wsinvocation.client.impl.axis.AxisClientImpl.requestReply(AxisClientImpl.java:229)
         at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java:303)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:273)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3185)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:1414)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:619)
         {http://xml.apache.org/axis/}hostname:IFLEXPAW061
         at com.sunopsis.wsinvocation.client.impl.axis.AxisClientImpl.requestReply(AxisClientImpl.java:265)
         at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java:303)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:273)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3185)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:1414)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:619)
    ================================================================================
    I also tried with the request file (got from soap ui) as
    *<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"*
    xmlns:cmod="http://oracle.com/CMODIXAIINT.xsd">
    *<soapenv:Header/>*
    *<soapenv:Body>*
    *<cmod:CMODIXAIINT>*
    *<cmod:personID>9571248085</cmod:personID>*
    *</cmod:CMODIXAIINT>*
    *</soapenv:Body>*
    *</soapenv:Envelope>*
    Got the following error
    ODI-1217: Session OdiInvokeWebService (70001) fails with return code 7000.
    ODI-1226: Step OdiInvokeWebService 1 fails after 1 attempt(s).
    ODI-1241: Oracle Data Integrator tool execution fails.
    Caused By: com.sunopsis.wsinvocation.SnpsWSInvocationException: Part does not exist:Header
         at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.loadFromXML(AbstractMessageImpl.java:251)
         at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.loadFromString(AbstractMessageImpl.java:304)
         at com.sunopsis.wsinvocation.client.impl.AbstractMessageImpl.fromString(AbstractMessageImpl.java:359)
         at com.sunopsis.wsinvocation.client.impl.AbstractJWSDLParserImpl.fromXML(AbstractJWSDLParserImpl.java:209)
         at com.sunopsis.wsinvocation.client.impl.AbstractJWSDLParserImpl.getWebServiceRequestByOperation(AbstractJWSDLParserImpl.java:204)
         at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java:299)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:273)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:3185)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:1414)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2785)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
         at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:83)
         at java.lang.Thread.run(Thread.java:619)
    Please help me to resolve this version issue in case when request file is XML from advance option_*
    and Part does not exist:Header  incase of request file in soap ui request format._*
    Thanks for ur help.....
    Edited by: user10684753 Dev on Jan 5, 2011 1:37 AM

    Hi,
    what is your ODI version?
    Cezar Santos
    http://odiexperts.com

  • Adobe Pro CC weird graphical issues, and crash on using some tools like brush and pencil.

    Just like the title says it keeps crashing.
    I'm using the MSI GS60 ghost
    with windows 8.1. 16GB RAM, intel core i7, and nvidia gt860m.
    Just using my mouse, no tablet or something. Latest Version, And I do not have an Wintab32.dll
    Can you help me because I need to use CC for my classes!

    Brendan Stewart wrote:
    i mean creating a layer mask and painting it back in with the paintbrush.
    Yes that is normal.  I have no problem with CS6, No lag or hesitation.
    A tip for you if your creating the mask using a copy of a color channel. Set the brush blending mode to "Overlay" This will protect the mask Black and White areas. You will only be able yo paint in gray areas of the mask.   When areas turn 0,0,0 Black or 255,255,255 White they become protected too. Use a Wacom tablet soft brush low opacity and many strokes

  • What are some uses for the aggregate object and definition file?

    Can anyone share some examples for using the aggregate object in a Lookout process file? I've spent only a little bit of time with it, but I can't see how it provides any useful functionality. I guess I'm open to suggestions--thanks in advance! JT
    John T. Sampson

    If you want to reuse code in a modular sence than the Aggregate object will work. Although it works best to start the development with the intent to reuse that segment of code.
    Look at the Sequencer Object Example from the Developer Zone. Follow the README file to copy all files into the Lookout/Examples folder. The Help_Template is an Aggregate process that was used many times in different examples for the web. The state file, .l4t, holds the text that gives further details on the development of the example. The Sequencer process has an Aggregate object used in it to open the Help_template.
    Sequence Example

  • Using AppleScript to create folders and place files in them

    Hi guys,
    I've been reading through the forum for the better part of the last 6 hours wracking my brain trying to figure out how to accomplish what I'm trying to do. I've been playing around with Automator and also trying to decipher some Apple Script samples that were posted on here, but I'm really having no luck at all. I'm sure you've all been there where you feel like you're on an endless search to solve a problem and it feels like there's no hope. I've tried every single possible thing I can and I'm getting close, but it's never quite right.
    Here's what I'm trying to do, and hopefully some kind soul will help me out. I'm deseperately trying to figure this out, and any help at all would be GREATLY appreciated!
    I have a bunch of PDF files that I scan, in the hundreds. After I've scanned them I'm left with something like this:
    1234567_Elephant.pdf
    1234567_Duck.pdf
    1234567_Cat.pdf
    1234567_Cat_01.pdf
    1234567_Dog.pdf
    3431233_Elephant.pdf
    3431233_Dog.pdf
    3431233_Dog_01.pdf
    3431233_Duck.pdf
    etc...
    So they have a 7 digit ID, then the file name which is always one of the 4 options (I'm just using the animals as examples, but they would be other words).
    What I'd want the script to do is categorize these into folders based on the ID number, and then based on the "animal" and then the files within them. Note, some files have an _01 or _02 etc... appended to them. I don't know if this makes a difference.
    So after running the script I'd love to see
    1234567 (Folder)
         Elephant (Subfolder)
              1234567_Elephant.pdf (File)
         Duck (Subfolder)
              1234567_Duck.pdf (File)
         Cat (Subfolder)
              1234567_Cat.pdf (File)
              1234567_Cat_01.pdf (File)
         Dog (Subfolder)
              1234567_Dog.pdf (File)
    3431233
         Elephant
              3431233_Elephant.pdf
         Dog
              3431233_Dog.pdf
              3431233_Dog_01.pdf
         Duck
              3431233_Duck.pdf

    well, using a couple of stock handlers I had lying around, and making the following assumptions:
    that an underscore is always the delimiter used
    that the file name is always a single word like 'dog' or 'cat' (if you have multiple word file names, the script needs to be modified some)
    this should do what you ask:
    set mainFolder to (choose folder) as text
    tell application "System Events"
      -- get all the unsorted files, and loop through
              set unsortedFiles to every file of folder mainFolder whose visible is true
              repeat with thisFile in unsortedFiles
      -- split the file name on underscores and periods
                        set fileNameBits to my tid(name of thisFile, {"_", "."})
      -- first item of list is id, make/get correct folder
                        set IDFolder to my checkForFolder(mainFolder, item 1 of fileNameBits)
      -- second item of list is file name, make/get correct folder in id folder
                        set groupFolder to my checkForFolder(IDFolder, item 2 of fileNameBits)
      -- move file
      move thisFile to groupFolder
              end repeat
    end tell
    to checkForFolder(fParent, fName)
      -- subroutine checks for folder, creating it if it doesn't exist
              tell application "System Events"
                        if not (exists folder fName of folder fParent) then
                                  set output to path of (make new folder at end of folder fParent with properties {name:fName})
                        else
                                  set output to (path of (folder fName of folder fParent))
                        end if
              end tell
              return output
    end checkForFolder
    on tid(input, delim)
      -- subroutine for handling text item delimiters
              set {oldTID, my text item delimiters} to {my text item delimiters, delim}
              if class of input is list then
                        set output to input as text
              else
                        set output to text items of input
              end if
              set my text item delimiters to oldTID
              return output
    end tid

Maybe you are looking for

  • How to create dynamically a method of a class??

    I would like to create dynamically a method of a class. Is this possible? By means of a report I would like to choose a class, to which the defined method should be added and after that I would like to define the name of the method and its parameters

  • Quotes conditional build tag

    I am using Office Word 2003 and Robohelp 7 for Word and I need to apply conditional build tag to document contents. I'm compiling the help for Microsoft HTML help but opening the chm file I can still see the following text (in a small font) at the pl

  • Cannot connect Remotely for SQL Server 2008

    Hi, I have SQL Server 2008 installed and configured as server locally. So when I try to connect using same machine with IP address it works but when I try to connect through any other computer through internet, it does not work and gives the followin

  • Window popup

    hi I need to popup window upon clicking "+" symbol in a JSF page , i will be placing + symbol in a particular column of table for all records. for UI component like Component Button through 'action' tag we can do it. But need solution for '+' or any

  • Putting photos on a DVD

    I WANT  to put the photos I hAVE in photosmart essentials  ONTO a DVD and when I click on that option nothing happens.Can you help me out????thank you.  I have been trying to do this for quiet a while now to free up disk space.