![]() |
I think it would be easier to run the script with the folder opened and use the "set source_folder" line from post #18
If you drop the folder, it's location will change. |
The "canonical" way to get just the last part of a file (or folder) name is to use "basename":
Code:
~ % basename /Users/ataraxia/Documents/resume.rtfCode:
~ % basename /Users/ataraxia/Documents/resume.rtf .rtfCode:
~ % dirname /Users/ataraxia/Documents/resume.rtf |
Quote:
command for that (btw, why would a file's name end in /?): basename "$a" -HI- |
Something weird is going on here:
When I wrote and submitted my above post at 4:14 PM [if indeed it was 4:14 PM?], ataraxia's reply (designated 2:46 PM?) was not here!!! In fact... my reply originally landed on page 1. Strange. |
| All times are GMT -5. The time now is 05:41 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.