Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'spaces and special chars' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
spaces and special chars
Authored by: shacker on Oct 30, '01 04:12:03AM

I posted a question to comp.sys.mac.system about this yesterday, looking for an OSX analog to the BeOS TermHere Tracker add-on. Someone posted an AppleScript to accomplish this, but it doesn't work with paths that include spaces. This version does handle paths with spaces, but doesn't handle some paths with unusual characters, such as

cd /Volumes/Wensleydale/artists/C/Cachao (Israel Lopez)/Master Session Volume I

which works when you drag a folder into Terminal after a "cd", but doesn't work with this script. Is this easily fixable?



[ Reply to This | # ]
spaces and special chars
Authored by: liyanage on Oct 30, '01 04:55:57AM
Hmm, I cannot reproduce your problem, it works flawlessly for me:

% pwd
/Volumes/Wensleydale/artists/C/Cachao (Israel Lopez)/Master Session Volume I

I recreated your exact directory, opened the deepest folder in the Finder and clicked on the Icon in the toolbar. A terminal window opens and drops me into the right directory. The pwd output above is what I get immediately after the window opens.

But you did remind me of the possibility of one special character that could cause a problem: a single quote. I've now changed the script so it will handle that case too.

Let me know if you find other filenames that break it...



[ Reply to This | # ]