Help setting up Applescript to process with a batch of files.

Hello everyone!
A couple of days ago I posted here about needing an Applescript to be able to parse large text files into smaller ones. A lovely contributor, twtwtw, helped me out and came up with this script:
set f to choose file with prompt "Choose the file to parse."
tell application "Finder"
    set fName to name of f
    -- the following line assumes that the file name has a three character extension, like '.txt'
    set foldName to text 1 thru -5 of fName
    set fold to (make new folder at (path to documents folder from user domain) with properties {name:foldName}) as text
end tell
set fp to open for access f
set bigText to read fp
close access fp
set parsingText to "All Rights Reserved"
set parsedList to tid(bigText, parsingText)
-- the following line requires that the file name be exactly in the form "<prefix>_<suffix>" with only one underscore
set {prefix, suffix} to tid(fName, "_")
repeat with i from 1 to count of parsedList
    set newFName to prefix & "_a" & i & "_" & suffix
    set fp to open for access (fold & newFName) with write permission
    -- uncomment the following line if you need to overwrite old files, otherwise it will append
    -- set EOF of fp to 0
    write ((item i of parsedList & parsingText) as text) to fp
    close access fp
end repeat
on tid(input, delim)
    -- a subroutine to handle text item delimiters. Useful tool, but so danged wordy.--
    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
It turns out however, that I have about 500 of these large files that need parsing, so I was wondering if there might be a way to modify the script by allowing more than one input file, so that it would repeat the parsing action for all input files passed to it.
Can anyone help?

try this:
set f to choose folder with prompt "Choose the root folder containing your files."
traverseFolder(f)
on traverseFolder(fold)
     tell application "System Events"
         set containedItems to every disk item of fold whose visible is true
         repeat with thisItem in containedItems
               if class of thisItem is folder then
                   my traverseFolder(thisItem)
               else if type identifier of thisItem contains "plain-text" then
                   my processFile(thisItem, fold)
               end if
         end repeat
     end tell
end traverseFolder
on processFile(thisFile, itsFolder)
     tell application "System Events"
         set fName to name of thisFile
  -- the following line assumes that the file name has a three character extension, like '.txt'
         set foldName to text 1 thru -5 of fName
         set newFold to path of (make new folder at end of itsFolder with properties {name:foldName})
     end tell
     set fp to open for access thisFile
     set bigText to read fp
  close access fp
     set parsingText to "All Rights Reserved"
     set parsedList to tid(bigText, parsingText)
  -- the following line requires that the file name be exactly in the form "<prefix>_<suffix>" with only one underscore
     set {prefix, suffix} to tid(fName, "_")
     repeat with i from 1 to count of parsedList
         set newFName to prefix & "_a" & i & "_" & suffix
         set fp to open for access (newFold & newFName) with write permission
  -- uncomment the following line if you need to overwrite old files, otherwise it will append
  -- set EOF of fp to 0
  write ((item i of parsedList & parsingText) as text) to fp
  close access fp
     end repeat
end processFile
on tid(input, delim)
  -- a subroutine to handle text item delimiters. Useful tool, but so danged wordy.--
     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
I changed to system events for efficiency reasons (the Finder can get bogged down with too much scripting).  the only place you might run into issues is line 11, where it says else if type identifier of thisItem….  that might miss files if they have odd type identifiers (though it should get most plain-text files).  I only put that if statement in there to keep from processing spurious files that might be in the folders - you can replace that whole line with a simple else if you find it's gumming up the works.

Similar Messages

  • How Setting up global http proxy with profile in iphone(file.mobileconfig)

    how Setting up global http proxy with profile in iphone(file.mobileconfig)

    how Setting up global http proxy with profile in iphone(file.mobileconfig)

  • Parallel process with a queue and file?

    Hello, first of all sorry for my bad english^^:
    I am working for days on my project where I have to show the parallel process while transfering information by different ways and their problems (like timing and so on). 
    I chose the transmission of information to a parallel process by (1) a queue, and by (2) a file (.txt). (other ways are welcome, do you have 1-2 other ideas?)
    To solve this problem I made three while loops, the first one is the original one, where the original information (as a signal) is created and send by queue and file to the other two while loops, where this information is getting evaluted to create the same signal.
    so in the end you can compare all signals, if they are the same - so that you can answer the question with the parallelity of process.
    but in my vi file i have some problems:
    the version with the queue works pretty fine - it's almost parallel
    but the version with file doesn't work parallel, and i have no idea how i can solve it - -
    i'm a newbie^^
    can someone correct my file, so both (file and queue version) run parallel with the original one, or tell me what i can or must do?
    Attachments:
    Queue_Data_Parallel_FORUM.vi ‏23 KB

    LapLapLap wrote:
    Hello, first of all sorry for my bad english^^:
    I am working for days on my project where I have to show the parallel process while transfering information by different ways and their problems (like timing and so on). 
    I chose the transmission of information to a parallel process by (1) a queue, and by (2) a file (.txt). (other ways are welcome, do you have 1-2 other ideas?)
    To solve this problem I made three while loops, the first one is the original one, where the original information (as a signal) is created and send by queue and file to the other two while loops, where this information is getting evaluted to create the same signal.
    so in the end you can compare all signals, if they are the same - so that you can answer the question with the parallelity of process.
    but in my vi file i have some problems:
    the version with the queue works pretty fine - it's almost parallel
    but the version with file doesn't work parallel, and i have no idea how i can solve it - -
    i'm a newbie^^
    can someone correct my file, so both (file and queue version) run parallel with the original one, or tell me what i can or must do?
    A queue is technically never parallell, though you can have several if you really need parallellism. Other methods include Events, Action Engines, Notifiers (and why not webservices) for information transfer between processes.
    Due to limitations in the disk system you can only read/write one file at a time from one process, so i wouldn't recommend that. If you use a ramdisk it might work.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Having multiple issues with automate batch - skipping files, misplacing watermarks etc

    I record the action exactly how I want it: editing, placing the watermarks (place embedded) putting them where I want them and re-sizing, save as (with jpg details), etc before I stop recording. When I do the Automate Batch with this action, the watermark is placed nearly completely off the image, it will go from file 1 to file 10 (skipping files 2-9) This worked fine on a previous Batch with a similar action. Nothing is working correctly for this one. I have also tried using "Place Embedded" with the same result. The files are NEF files being saved to JPG. After the it finishes the action, the "Save As" menu opens.
    Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532  x64
    Operating System: Windows 8.1 64-bit
    Message was edited by: Adam Jordan

    It is difficult to process different size image and add watermarks.  You stated your currently processing RAW Nef files.  RAW Files can have ACR setting saved for them which can size them differently. They can never have been processed with ACR so have not setting and will use your default setting for your camera. ACR also remembers your  last used  workflow setting which can change document size.  In your Action I see you using Place which has some setting for the place transform.  However I see no step before the the place to handle document size.  So the place step will work differently on different size documents. The Place is followed by a move and then a second place and move.  You then flatten and save which is not necessary Saving a jpeg from a layered document will save a flat jpeg.  Quality 12 is also overkill.
    This action may work well on a particular size document with the same aspect ratio and orientation but will fail on others.
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Download

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • I need to help set up my parents laptop with a second iTunes account then sync an iPad and shuffle

    It's post Christmas and I'd like to help my parents by setting up my dad onto itunes ( has his own apple ID already ) as he just got an iPad    Thing is, the laptop has moms iTunes already.  I need to find a tutorial on how to do the second iTunes account.  We don't need to share files as both want to control own purchases and own playlists.  On dads account we need to add a shuffle.
    Is it simple? As in once I download iTunes again, I log out mom and log in dad .
    How Can this be done?
    Thanks.

    Hello Miss,
    To set up a new Windows user account, if it is Windows 7, go to Start > Control Panel > User Accounts and Family Safety > Add or Remove User Accounts > Create New Account.
    The old laptop is probably on Windows XP, so the menus may look a little different.
    Once they each have their own Windows user account, they can each work with their own iTunes library, and all content will be independently managed.  That should avoid snarls and demerits in the coming year. 

  • I helped set up a familiy member with an Itunes acct but all of my music transferred to them also.  How do I fix this?

    I helped a family member set up an Itunes account, but in the process I transferred all of my music over to theirs also.  Now my playlist is in both locations.  Can I just delete the songs on the other family members acct, without having it affect mine?

    See here: iPod nano: Error message saying that iPod 'could not be identified properly'
    B-rock

  • Plz Help setting up my Mac g4 with WRT54g. PLEASE!!

    Hey, first let me say that I am brand new to doing anything wireless. Just never had the need for it before and now I am completly lost and havnt a clue what to do or where to go. Here is my situation and what I want to accomplish.
    First I am not trying to go wireless with my Mac. I purchased the router so I could use my internet connection with my XBox360 which is hooked up downstairs from my computer. So basically what Iwant to do is just hardwire my Mac into the router and keep the router right next to my computer. I purchased the Xbox360 Wireless network adaptor and should have all the equipment to get this thing working. The problem is Idont know how to set up the router as no software for the Mac was included and I dont have a wireless card in my Mac or anything like that. I just wanted to plug the internet connection into the router, connect my Mac to port 1 and have the Xbox be the only thing really wireless. Ihope I explkained that good enough.
    I tried just hooking it up and putting the Ethernet cord from my computer in Port 1 but nothing is working. Ieven tried setting up the Xbox360 and it keeps stopping at the DNS section of the setup operation.
    I am clueless where to go from here. I called on the phone and they told me that it doesnt support the Mac but everywhere I look it says that the Mac is supported and even the sales guy said I could use my Mac with this model. I am completly lost and dont know who can help me now. What should have been really simple to setup has now been a total nightmare and a waste of 175 bucks.
    I would be forever endebted to anyone who can help or even point me in the right direction. Again all I want is to keep the router by my computer and keep the computer connected with a wire. Its the Xbox that I really purchased this for. Plz help.
    Thank you!!
    Router impaired Customer

    Well, for the MAC you will have to manually configure the router. You forgot to mention the name of your ISP. If it’s a cable connection then try this :
    Open IE and type http://192.168.1.1 . You will see the login screen.
    Leave the username blank and type "admin" for the password. You will find the set up screen. Go to " Mac Address Clone" subtab. Enable it and click on "clone". Save the settings and power cycle If it’s a DSL connection , under the " Basic Setup " page, change the internet connection type as PPPoE and enter the username and password provided by the ISP.
    Now, once you have an internet connection on the computer, you can try to use your x-box 360.

  • Help setting up my audio interface with logic pro x

    Hi everyone,
    I am a newbie with regards to home recording and using Logic Pro X and I need some help and advice about setting up my home recording set up for the first time. I want to connect my synthesizer Korg Triton Extreme to my Audio Interface Steinberg UR22 to my Apple Imac computer.
    What I would like is if I can create backing tracks or use pre-set sounds or drum patterns from my Korg Triton Extreme synthesizer and then transfer them onto Logic Pro X to help me compose songs.
    How should I go about doing this? And what settings should be applied to Logic Pro X so that I can hear the songs as they are being played and recorded?
    So far I have connected my synthesizer's two outputs to the two inputs on my Steinberg UR22 Audio Interface. I have also connected the USB point on the audio interface to my Apple Imac computer. But when I have tried to add a drum track from the Korg Triton Extreme synthesizer I cannot seem to add any of the drum sounds. Nothing appears to be recorded despite me trying several times. I cannot hear any sound coming from the audio interface either despite having a pair of headphones plugged into it.
    I would also like to find a way to synchronise the drum tracks I want to record from my Korg Triton Extreme synthesizer to Logic Pro X. So that when I click on the record button on Logic Pro X the synthesizer track automatically starts playing and recording on Logic Pro X. Whats the best way to do this? And will I need a Midi cable for any of the things I want to do?
    Many thanks,
    James.

    Hi James
    I just got myself a macbook pro and logic pro X, and I also have a Triton Extreme and the UR22. So I know what the learning curve can be like - it's been a long time since I've used a sequencer in a computer.
    I assume you are aware of the difference between audio and midi? With your current setup, all you can do is play your Triton and record the sounds as audio loops - you should be able to hear the Triton through headphones plugged into the UR22, and (assuming you have installed the UR22 driver) you can also hear the Triton through your computer speakers (or headphone output) once you tell Logic there is sound coming in from the UR22.
    If you want to be able to play the sounds in logic pro, or transfer drum patterns (which are in midi format), you will definitely need midi cables (you may be able to use midi by connecting the Triton's USB out to your computer, but having not tried that, I don't know if it will work - it does on more recent synths)
    paul

  • Need help setting up an IP phone with the Westell 9100EM router

    I have an IP phone that I use for work - it's an old fashioned Axxess phone by InterTel but it works. I've had both DSL and cable service before, using a Netgear wireless router with the phone and never had an issue with the phone connecting to our office phone system. I just recently moved and have FIOS and chose not to hook up the Netgear, since the Westell does DHCP just fine.
    When I connect the phone, the phone is receiving an IP address from the router and I can see it's connected when I'm logged onto the router but it will not connect with our system. The phone runs through UDP port 5567 but connects usually with TCP port 5566. I can ping 5566 and get a reply. I can telnet our Remote IPC IP using 5566 and get a response but the phone times out after 60 seconds of not being able to connect.
    I have checked out this website and am guessing it has something to do with port forwarding. I tried to make some changes but I'm not sure I understand enough about how it's supposed to work to feel confident that I put the right information in the right places!
    I could really use a nudge in the right direction. The phone worked a few days ago on a DSL connection so I know the phone is working. Other users who work from home are not having issues with their IP phones so I've narrowed it down to the router. Both my computers are working on the system too.
    Thanks!
    Anne

    #1 http://i27.tinypic.com/2due29v.jpg
    At that screen in your router, change the Starting IP so that it is
    192.168.1.100
    #2 On the Axxess phone by InterTel, setup a static IP outside of that range.
    You can set any number that you want to BUT NOT: 0, 1, 100 to 255.
    #3 Here is/are guide(s) for that router (This is based upon the screen images seen so far)
    http://www.portforward.com/english/routers/port_forwarding/Actiontec/MI-424-WRv2/MI-424-WRv2index.htm
    ^^
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Help setting up small home network with PC and an imac!!!?

    I have an imac in my room, and my mother has a JP PC in her room across the house. We have a router and modem on her computer(I connect to the internet through the router signal)
    I just recently bought a new printer. It is a wifi printer. I was told by a friend that I need to setup a small netowrk so all the computers/printers in the house can talk to one another. Because right now my printer is installed and connected to the router signal (but my computer does not reconize it to print....)
    I started a small network on my moms PC...but when I can't make a network CD like it tells me to because my computer is a Mac....how do I continue to setup this network?Can I set it up first on my mac as well???PLEASE HELP! I want to use my printer!

    You can just connect the WRT54G wireless router’s LAN port to BEFSR41 router’s LAN port by using a network cable as specified in this configuring wireless router as access point article, after that can connect other computers to that wireless router with or without cable. Finally do more test to check the performance. Hope it helps.

  • Help: Set up Time Machine Drive with Airport Extreme

    I've read a few posts on this topic, none of which addressed my specific issue, but all of which stated that this functionality is not officially supported. I really hope this is not true because I bought my Airport Extreme and Hard Drive based on numerous Apple Store clerks assuring me that this was possible. So any help would be most appreciated. Here's the details/story:
    I have a 13" MBP 2.53ghz, running 10.5.8 I've been backing up to a local 1TB HDD over FW800 since July with no problems.
    I bought an Airport Extreme and am trying to move the drive to the AE to back up wirelessly. Here's what's happened so far:
    1. I connected the drive with USB to the AE. It mounted no problem and I could see all my backups easily, but Time Machine did not recognize it as my back up drive. When I used the "Change Drive" button in the hopes of "finding" the drive, it just tried to start a new Time Machine back up set, wirelessly. So I think the broad concept is working, it just a matter of getting TM to recognize the back up set.
    2. I plugged the drive in locally with USB (rather than FW800) and did a back up, no problem. After doing this, and plugging the drive back into the AE, TM no recognizes my backup set as mine, and tries to start the next backup, but I got an error message about not being able to write to the drive.
    3. I did some reading online to get some ideas, I used Disk Utility to verify and repair the drive (over USB locally) Disk utility did find some errors, but it didn't seem like anything major.
    4. Now, TM really starts to get going doing a backup, but when it actually comes time to transfer/write the new data over, I get an new error, that my drive is not formatted as a Mac OS Extended (Journaled). I use disk utitilty again, which confirms that the drive IS Mac OS Extended (Journaled) and is partitioned GUID (which I read is also a requirement)
    And this is where I am. Any one have any ideas?
    Thanks in advance for your help.

    TSomers wrote:
    I'd hate to think it's just to sell their $500 2TB Timecapsule (which is more than 2x the cost of competing 2Tb drives). Maybe Apple should share their secret sauce with the other drive makers so that they all can work.
    Though you seem to hate it, you have indeed hit the nail... I also had issues with USB attached drives on my AEBS (Airport Extreme Base Station). This problem occurred before Apple had the policy statement in place and they ended up exchanging my AEBS, since it was crashing the AEBS when the USB drive did not become accessible (it was a WD brand that didn't play nice with any USB connection, as it later turned out). I suspect there was nothing wrong then with my original AEBS' USB connection, but the replacement was more reliable overall however, so it proved a boon. Perhaps Apple learned something from my previous problems.
    Anyway, Apple is not without its reasons for this policy. That's the long story.
    Short story? Use supported configurations only if you want a reliable backup. In my case, can easily move my drive to a Mini and have it run in a supported configuration whether by sparse bundle format or otherwise.
    Network connections do indeed format the way described. You can check this very thorough article...Suggest you read the unofficially sanctioned discussion list article by Pondini (kudos for your thoroughness, sir/madam!) first. Many great suggestions and nifty storage ideas to maximize your use of available media in your particular situation will come from a careful reading.
    http://discussions.apple.com/thread.jspa?threadID=1964018

  • Help setting up Compiz Fusion standalone with gdm, inittab, and tint

    Hello!
    I'd like to set up my fresh Arch install with Compiz Fusion standalone, using twim, and gdm as the login manager. This all with the inittab method of booting with gdm. Openbox is nice, but I have a fast PC - while I like minimalism, effects are nice.
    I've looked at the wiki instructions, and a few forum threads, but haven't so far got it working.
    Could someone please explain the different config files I will be working with, and how they mesh together? As in, what process does the system follow through them? Does ~/.xinitrc factor in, or is it only called through startx? That sort of thing.
    And, does anyone know if Compiz Fusion will 'mesh' with tint, and provide the same mouse-over image previews of windows available in GNOME?
    Thanks
    Last edited by Ranguvar (2008-10-20 23:40:59)

    If you'll be using gdm create a file called fusion.desktop ("fusion" can be anything you want to name your session and will appear in gdm session listing). Place this file in /etc/X11/sessions.
    Mine for reference:
    /etc/X11/sessions/fusion.desktop
    [Desktop Entry]
    Encoding=UTF-8
    Name=Fusion
    Comment=Compiz Fusion Standalone
    Exec=/usr/local/bin/start-fusion.sh
    TryExec=/usr/local/bin/start-fusion.sh
    Type=Application
    Then you need to create a script and place it in /usr/local/bin. As you can see from my fusion.desktop file I've named the script start-fusion.sh. Here's mine for reference:
    /usr/local/bin/start-fusion.sh
    #!/bin/sh
    # Avoid relying on autolaunch to improvise D-Bus sessions for each process
    if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    fi
    #compiz ccp &
    #emerald &
    sleep 6 && cairo-dock &
    sleep 12 && mplayer /usr/share/archlinux/arch-anim.mov &
    exec fusion-icon
    Make the script executable (do all above as root or use sudo) and you should be able to use gdm to login.
    Does ~/.xinitrc factor in, or is it only called through startx?
    Well, that would be the case if starting from runlevel 3. You would then want to add a line like this to it:
    exec start-fusion.sh
    btw: fusion-icon is used rather than the #'ed out method in start-fusion.sh as it provides a way to exit out of the session.
    You can also use compiz-deskmenu from aur to provide you with a menu in your fusion session.
    As far as tint is concerned, I haven't used it. I use cairo-dock which has a systray plugin. Advantage being I can use it as a widget and hide it away.
    Last edited by my0pic (2008-10-16 03:06:49)

  • [Solved] Help Setting Samba Share In Qemu With XP Guest

    Hello all,
    After getting around all the quirks of setting an XP guest inside qemu, the only (though, pretty important) thing I can't solve is setting a samba share between the Arch host and the XP guest.
    I tried whatever I could think of that's relevant, with no success:
    Qemu is launched with:
    qemu-system-x86_64 -machine type=pc,accel=kvm -cpu host -boot d -m 1024 -net user,smb={my home folder} -net nic,model=virtio -rtc base=localtime -drive file=XP.qcow2,if=virtio -spice port=5900,disable-ticketing,image-compression=off,jpeg-wan-compression=never,zlib-glz-wan-compression=never,playback-compression=off -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent -balloon virtio
    I installed samba, added a user, and started the service according to the wiki.
    I allowed the samba ports in UFW (using the CIFS rule).
    Whenever I try accessing the share inside my XP guest (\\10.0.2.4\qemu), I usually end up with a target not found error, or at times, a password prompt that will not accept the samba user/password.
    Anything else I forgot to do?
    Thanks, Adam.
    * EDIT *
    I somehow missed the section regarding the guest OS able to access the host OS normal samba shares at 10.0.2.2.
    Default samba share for home folder works as expected.
    Last edited by adam777 (2013-07-15 16:05:44)

    Thanks.
    I tried toying with the options a bit more, with no success.
    I then decided to try Spice+QXL anyway, and am very happy with it.
    Aside from the lengthy compilation of the Qemu version that supports Spice from the AUR, once I got it set up, installing the guest was a breeze.
    Using the Spice guest tools for windows, everything was set up very conveniently (virtio for network, hdd, qxl driver, mouse integration etc.).
    Responsiveness is much better comparing to previous attempts with "vga std", "vga cirrus" and normal adapter.
    Bottom line, I'm sticking with Spice+QXL, seems to work best for me.

  • Help setting up iPhoto to publish with Flickr

    Please tell me what i am doing wrong. I am trying to get iPhoto to publish to Flickr. I chose my photo, a drop down message appears at the top of the screen saying "Do you want to set up iPhoto to publish to Flickr?" I click Setup and it takes me to Yahoo/Flickr sign in page on the web. I confirm my username & password and I am taken to Flickrs home page. I know I can upload photos here but I want to do it direct from iPhoto but every time I click on the Flickr button I have to repeat the above all over again. Please can someone help me??

    Did you check the box to stay signed in for two weeks?
    What I see is select photo(s), click on Flickr and I go to a Flickr web page where I sing in and tell it to keep me signed in and I get a new web page asking me if I want to allow iPhoto to upload - I say yes and it goes to a page telling me that I can change this - I close that page and go back to iPhoto in the dock and click on the still open box to upload to Flickr and it works without having to go to the Flickr page again
    What exact steps are you taking
    LN

Maybe you are looking for

  • Looking for a replacement for Terminal from XFCE [SOLVED]

    I'm looking for a terminal to replace Terminal from XFCE. The requirements are simple. It needs to be GTK2 based for full clipboard functionality and to not be ugly. There needs to be a right click menu to access copy/cut/paste. And I need to be able

  • Acrobat X Pro v10.1.9: Cannot print to Adobe PDF Printer (access is denied)

    Hello. Suddenly I was not able to print Office 2013 files / Autocad files / Internet Explorer pages directly to Adobe PDF Printer anymore on my WINDOWS 7 Ultimate x64 sp1 computer. I have tried to uninstall and reinstall Acrobat X Pro, but the issue

  • Portable Home Directories, FileSyncAgent, and Case-sensitive drives

    I have a 10.5.3 Server machine that is serving (via NFS) home directories to a mixed group of Leopard (10.5.3) and Linux clients. The drive containing user home directories is formatted to be case-sensitive. I also use Portable Home Directories and m

  • Cricket Wireless and WRT54G2

    i want to know if there is any way to use the WRT54G2 router together with cricket wireless.i have 2 laptops.one doesnt have a CD ROM drive so i cant install my cricket wireless broadband CD.Since i couldnt do that i connected an ethernet coard from

  • Decode and encode wen retriveing from DB

    i have some data stored in the DB. for eg- what is ur name . when i am trying to retrieve it comes like whats%20is%20my%20last%20name i trie to decode it by <% String getSecretQ = null; String insertquestion = (String) pageContext.findAttribute("ques