Converting a shell path to mac path

Anyone have an idea on how to turn a shell path to a mac path without using AppleScript via osasscript?
That was my first idea, but it was dreadfully slow.
Thanks in advance.

This version preserevs any ':' characters by temporarily substituting it with a null byte then swapping any nulls to '/':
<pre style="overflow: auto;font-size:small; font-family: Monaco, 'Courier New', Courier, monospace; color: #222; background: #ddd; font-size: 9px;">#!/bin/sh
sed -ne "
# First preserve : characters by swapping with null.
s/:/\0/g
# swap / with :
s/\//:/g
# change original : (now null) into /
s/\0/\//g
# If pattern space does not begin with :Volumes,
# then prepend mac harddrive name and print.
/^:Volumes/ ! s/^/`ls -F /Volumes | sed -ne 's/@$//p'`/p
# But if pattern space _does_ begin with :Volumes:, just delete and print.
s/^:Volumes://p
</pre>
Cole

Similar Messages

  • Change color of compoundPathItems created by converting Text to Paths using createOutline()

    I used createOutline() to convert Text to Paths. However, the return is a GroupItem and I had difficulty in changing its stroke and fill colors.
    Here is my script:
    var docActive = app.documents.add();
    var textFrame = docActive.pathItems.rectangle( 0, 0, 200, 20);
    var areaText = docActive.textFrames.areaText(textFrame);
    areaText.contents = "Hello My Friend";
    areaText.textRange.characterAttributes.size = Math.round(20*0.85);
    var textOutline = areaText.createOutline();
    // Trying to change stroke and fill colors of textOutline but got stuck here...

    try this, I added comments next to each line
    var docActive = app.documents.add();
    var textFrame = docActive.pathItems.rectangle( 0, 0, 200, 20);
    var areaText = docActive.textFrames.areaText(textFrame);
    areaText.contents = "Hello My Friend";
    areaText.textRange.characterAttributes.size = Math.round(20*0.85);
    var textOutline = areaText.createOutline(); // this is a group
    var compoundPaths = textOutline.compoundPathItems; // each letter is a compound path
    for (i=0; i<compoundPaths.length; i++) {    // loop thru all letters
        var compoundPath = compoundPaths[i];    // this holds one letter at a time
        var pathItems = compoundPath.pathItems; // all pieces (pathItems) of the compound path make up each letter
        for (j=0; j< pathItems.length; j++) {   // loop thru all letter parts
            var pathItem = pathItems[j];            // this holds one letter piece at a time
            pathItem.fillColor = docActive.swatches[5].color;       // fill it with the 5th swatch
            pathItem.strokeColor = docActive.swatches[4].color; // stroke it with the 4th swatch

  • Converting marquee to path

    I am trying to convert a bitmpap image into a vector bu using the marquee tool.
    I then use the command select>converting marquee to path to make the transformation.
    The only thing that happens is that the shape i created with the marquee tool just takes the color of the fiil which is displayed on the property inspector.
    No conversion seems to take place.
    Why?

    I did my job with the magic wand tool.
    I manage to convert the bitmap to a vector with this way.
    After i selected the area of interest with the magic wand tool the i went to select>comvert marquee to path.

  • How to convert a motion path in After Effects to CNC G-code

    Hello! Is there a way to convert a motion path in After Effects to CNC G-code?

    Copy&paste position as path to Illustrator
    Save AI/ DXF/ whatever file
    Import into your routing software
    Mylenium

  • Converting type to paths- CS3 vs. CS5

    I have CS3, but am now trying out fw CS5, and have a weird issue when converting type to paths.
    Original type:
    Converted to paths on cs3:
    Converted to paths on cs5
    This is just an example, I tried with several different fonts, and they all produce different results, with cs5 always doing a much poorer job. is is because of the new type engine? Can anything be done about it?
    it makes me question upgrading a lot!

    Thanks for the feedback. I had tried your first suggestion to no avail, but had not tried the second. Now that I have, selecting the type only instead of the frame still caused a grad shift when converted. I ended up just re-applying all the gradients, but it would be nice to figure out if this is possible for the future. Appreciate the input, though.

  • How can i convert video files from my mac to watch them on my iphone?, how can i convert video files to watch them on my iphone?

    how can i convert video files from my mac to watch them on my iphone?, how can i convert video files to watch them on my iphone?

    Turns out the answer to that question changes if you ask it more than 4 times, so ask it again....
    The answer depends on the type of video files you want to convert.  If they are DRM protected commercial videos, no help can be given here.  Google.

  • HT5409 can i convert movies from iPad to mac laptop

    Ihave  download a movie from ipad but it will not play on my mac air laptop with quicktime installed..??

    Ihave  download a movie from ipad but it will not play on my mac air laptop with quicktime installed..??
    Are you going to give us any additional clues as to what you are really asking here?
    1) The "HT5409" in your subject title reference implies you are dealing with AVCHD content. If true, then how did you transfer them to your iPad and how did you transfer them from your iPad to your your MacBook Air platform? As the HT409 topic clearly stated, this can be very important. In addition, how are the files stored? For instance , have you extracted the MPEG-4 AVC content as transport streams or is the content still in the device recorded file form? Are you trying to edit the content or convert it to M4V, MP4, or MOV files directly?
    2) The "can i convert movies from iPad to mac laptop" part of your subject title is confusing. Yes, AVCHD files can be converted to simpler MPEG-4 AVC content that is compatible with all current and most older Mac computers and Apple mobile devices in MOV, MP4, and/or M4V file formats. However, how you do this will depend on the current form of the data and the target settings you wish to employ to ensure compatibility with the various target device possibilities. Further, non-AVCHD content (e.g., HD iPad video recordings) can also be downconverted to simpler settings in a similar manner if needed or required if that is your questing.
    3) Depending on your operating system, both AVCHD and MPEG-4 AVC content should already be compatible with QT X v10.2 and v10.3 players if properly transferred to your laptop from the recording device. And, even if improperly transferred, may still be converted to useable/compatible formats as long as the file itself has not been corrupted by your, as yet, unspecified workflow.
    4) What does "will not play on my mac air laptop with quicktime installed" mean here? Are you trying to play an AVCHD movie in the QT 7 player or one of the QT X players? If the latter, which one? Are you getting any error message? If so, what are they? If not playing in your main user account on the computer, does it play useing a different account? Do the files play in other, third-party multimedia players?
    Basically, your question is the equivalent of my saying my car won't start but failing to mention whether or not I am out of gas, my battery is dead, or that I have removoed the distributor cap, wires, or spark plugs from the engine. To properly solve the issue we need all possible information that you can provide describing exactly what you are doing, how you are doing it, what is not working as your expect it should, and what your goals are. In cases where you cannot answer such questions, it is often helpful to simply post/upload a sample "problem" file and let other users here examine it to determine the problem and/or suggest a specific solution for your particular system/configuration combination.

  • How to convert the outlook mail to mac?

    I bought months ago a mac book pro and now a new ipad. Till today I have used the outlook for mac because I won't loose my mail history. The contacts are no problem to convert. But who can tell me how to convert all mails to the mac mail program. For the future I want to use the apple mail program for both devices to sync them wireless.
    Hope my English can be understood.
    gobi68

    thanks for reply that quick... but this is the way I use it now. But I want to change it that I have on both devices the same status. The way I would prefer is to export the data from the outlook for mac and import these into the mail program on my mac.
    I tried a lot of tips in some forums but all fo them without the success they promis.
    If you find the one and only way to convert, please let me know.
    Regards
    gobi68

  • What is the best video converter (asf into AVI) for mac mini ox 10.5.8 leopard ppc?

    What is the best video converter (asf into AVI) for mac mini ox 10.5.8 leopard ppc?

    Try HandBrake 0.9.5 GUI
    HandBrake-0.9.5-MacOSX.5_GUI_i386.dmg
    Download
    Above from:
    https://handbrake.fr/old.php
    Also you posted this same question earlier (in Leipard Server forum) but did not receive any replies
    https://discussions.apple.com/message/26541868#26541868
    In the future mention that your tried

  • What is the best video converter (asf into AVI) for mac ox 10.5.8 leopard ppc?

    Friends can you tell me what is the best video converter (asf into AVI) for mac ox 10.5.8 leopard ppc?
    Thanks

    Hi Mazdauk, To convert ASF to AVI, I recommend you the iorgsoft video converter which I have been using. It claims to support ASF as input and AVI as output. Anyway, I haven't converted ASF to AVI, most of the time, I convert MTS to MP4. You can have a try first.

  • I have the CS5 Master Collection for Windows, but want to convert my license to a Mac.

    I have the CS5 Master Collection for Windows, but want to convert my license to a Mac. I already have the CS5 Suite installed on the Mac. What do I need to do from here? I tried reading up a little bit on this and saw some people said in order to do this you would also need to upgrade your product version. Please tell me this is not the case, as that would be the dumbest and most frustrating customer service move ever to already faithful Adobe purchasers... 
    Thanks for any help you can give!

    in order to do this you would also need to upgrade your product version. Please tell me this is not the case, as that would be the dumbest and most frustrating customer service move ever to already faithful Adobe purchasers...
    Unfortunately, upgrading to CS6 or joining the Cloud are your only options.
    Platform swapping (Win to Mac and vIce versa) is only available to CS6 owners.
    Order product | Platform, language swap

  • Create smooth selections in PS from PAPER drawings ,convert to "smooth paths" then paste to AI

    *******Enhancement / FMR*********
    Brief title for your desired feature:
    selections converted to paths in PS, or AI.
    How would you like the feature to work?
    If you draw with hard edged brush or pen in PS and paste to AI , the trace tool in Ai works very well, for swirls, cartooning, hand drawn perspective illustrations etc,
    but if you draw on paper and take a photo, which I do with a camera connected to the pc because it saves a small file size jpeg automatically into bridge, 250kb average,
    and open it in PS, to do a magic wand selection of the lines, then refine edge to smooth and tighten it up. It looks great at this point,
    Then paste this selection of pixels to Ai for tracing to get crisp vector edges from the selected pixel outline,
    or convert the selection to paths first, then paste the paths into Ai,
    in both scenarios the resulting trace outline has many jaggy edges, even if pasted into PS as paths, since the paths created in PS from the smoothly made selection still capture any diagonal pixelated edge even if the image is 300ppi and results in showing all the jaggies.
    I have tried all the trace settings and variables in AI, from simple through to photoreal.Even if you expand these traced results and use the pathfinder shapemode / unite it still creates crinkle edges. Which results in an hour plus of work redrawing the whole thing.might aswell just use the pen tool to start with.
    Trying to use the path/simplify tool is not useful as it smooths out all your shapes and changes the contours of the path too much regardless of angle threshold or curve precision, and the smooth function on the pencil tool changes the paths too much too when trying to smooth out the "jaggies" lines.
    I`ve tried creating a "shape" out of the path in PS but its also jaggy as it just replicates the path already made.
    tracing with the freeform pen tool in ps is faster than pen but creates uncontrolled edges.
    ** I was hoping there could be a setting to convert the selection to a vector path minus the jaggies or crinkles that occur on round or diagonal parts of the selection.
    Why is this feature important to you?
    allows me to freehand sketch on paper, create a selection in PS, convert to path, and paste that vector path into AI , problem is its a jaggy path,
    image below is selection in PS
    Convert to paths in PS, captures all the jaggies and crinkles,
    this sample is hand drawn,
    I smoothed and tightened the edges in "refine edge" in PS below. It looks to create a nice contour,
    however converting to paths gets in very close and still picks up jaggies, due to the pixel build of imagery.
    the result after refine edge dialogue below, I fill with green to copy paste this selection to AI, could also have pasted the channel but chose this, does same result anyway
    in Ai below, regardless of trace type, it produces either uneven edges that dont match the pixel contours or if I make a 6 or 16 colour trace or photoreal it creates many jaggied bumpy edges, as I said earlier if I unite it all with path finder I still have to redo all the contours with pencil, the path/simplify command ruins the outlines shapes and corner points. MIght as well just start with pen tool in this case, the long but sure route.
    However I`m hoping Adobe can create a formula for this purpose, to get that smooth selection to be a smooth path instead of jaggy bumpy. not sure if I`m making any sense here... is this understood?

    the formula could be written to connect the inside corners of the selection steps with a smooth vector line on concave turns (if your viewing the selection from outside the shape, like a "dip" or valley,  and the  vector line would change to connect the outside of each step corner on convex turns (mounds or lumps, "hills") viewed from outside the selected shape. Then this result smoothed to create smooth transition for the vector line.
    Like a very tight fit smooth moving average on a stock chart, but perfectly fit to the data as there is no time lag. perhaps look at wavelets, but respecting mitres, I`m not a maths person or programmer but have seen some things that made me consider these,
    anyway this tool would speed up my work in PS and AI if possible,,thanks,,

  • How does one convert a text path back into a line path in Illustrator CS 5?

    The previous answer to the same question in Nov 2009 does not work for me. That was to copy and paste in front. I've tried every permutation of copy and paste; I renamed the path to path. It looks like a path when I add stroke, but it does not behave like one.  I can't cut it or join it to any other path. It remembers it's text path status.
    I'm running OS X 10.7.5.
    Thank you.

    anacathena wrote:
     ...Holding down Option, while using the Direct Selection Tool, adds a little plus sign to the side of the tool, as there is next to the pen tool when you are in a position to add points. Is the plus sign there to let the user know the tool is in an option mode?...
    The plus sign in this case means that another selection tool is being used called Group Selection Tool. You can pick it from the Tools panel if you click and hold the mouse on the Direct Selection Tool (white pointer) and then you don't have to hold Option when clicking with it. If you hold Option while using this tool will switch to the Direct Selection Tool (white pointer without the plus sign)
    Once there is text on the path. The option-click seems a reliable solution.
    Shouldn't make a difference with or without text on the path.
    [scott w] wrote:
    An easier option may be to select the path via the Layer Panel, then copy it.
    Scott, there is no way I can select the path without its text aspect via the Layers Panel in CS5

  • How do I convert a compound path into a smart object?

    I'm working on a project and I need to use the free distort tool + ctrl (command for mac users) but it won't work. I found out that I need to convert it to a smart object, from another disscussion, but right clicking the name of it in the layers menu isn't working. I'm using CS6 by the way.

    fyreflair,
    but the discussion talking about the smart object was a photoshop discussion,
    Ah. In some cases, such a discussion may help clarify, wherever it comes from.
    It is nice to know that you had it sorted.

  • Which conversion software can I download to mac to convert outlook .pst files to mac .mbox files?

    Can anyone recommend software I can ddownload to an iMac to convert outlook .pst files stored on a memory stick to .mbox files for transfer to mac mail?  I have mail files I set up in outlook I need to transfer to my new mac, but have no internet connection on pc, so can't download anything on to it and have had to export .pst files to a usb stick.

    Will I be able to get my (Mac sourced) songs and podcasts onto the IPOD from the sharing Windows computer?
    No, iTunes library sharing only allows you to listen to music in the shared library.
    Another question: is there any way to duplicate my actual song files to the Windows XP computer so that I don't have to turn on the Mac in order for itunes to function on the XP machine? All my song files are on the Mac.
    Yes, use the network to copy the files from the Mac to the PC.
    tt2

Maybe you are looking for

  • Frequenet dead locks in SQL Server 2008 R2 SP2

    Hi, We are experiencing frequent dead locks in our application. We are using MSSQL Server 2008 R2 SP2 version. When our application is configured for 5-6 app servers, this issue is occurring frequently. But, when the same application is used with the

  • File link not working on Adobe 8.0

    Hi, on Adobe Acrobat 8.0 the File link does not work. For example if I have in the pdf the link: c:\daten\info.doc, I can't open this link. If it is a Weblink then it is working. The customer told me that was working in Adobe6???? On my PC it does al

  • CE10 ; Crystal_webcompserver : Log message: NT Authorization Required.

    Post Author: gjmoyer CA Forum: Administration On our Crystal Enterprise 10 server.  We are getting thousands of Warning messages logged to the Application event log from Crysal_webcompserver with description "Log message: NT Authorization Required."

  • Select Options... for...NO Intervals

    Hi, i have a problem. This is my code: Selection-screen begin of block x1 with frame title b01title. selection-screen begin of line. select-options so_x for l-x NO INTERVALS. selection-screen end of line. selection-screen end of block x1. when i exec

  • Batch wise price

    Dear     we have a scenario batch pricing,in that we have requirement thatif price is not picked from the batch i should not allow to do invoice .Is it possible  to do the customisation please help regards Damodhar