Page 1 of 1
File path including character count
Posted: 22 Feb 2013 22:58
by CookieMonster
I need a script that can copy the file path, plus the number of characters in the path and paste it like this; for how many files I want to copy the file path for;
31 (thirty-one character in the entire file path including the drive)
C:\<folder>\<folder>\<filename>
do this for each file
{paste}
40
C:\<folder>\<folder>\<folder>\<filename>
{paste}
so on....
Re: File path including character count
Posted: 22 Feb 2013 23:14
by highend
Code: Select all
$output = "";
foreach($file, <get SelectedItemsPathNames |>, "|") {
$output = $output . strlen($file) . "<crlf>$file<crlf 2>";
}
text $output;
Re: File path including character count
Posted: 24 Feb 2013 02:28
by CookieMonster
highend wrote:Code: Select all
$output = "";
foreach($file, <get SelectedItemsPathNames |>, "|") {
$output = $output . strlen($file) . "<crlf>$file<crlf 2>";
}
text $output;
That is perfect. Thank You.

Can you put scripts somewhere in the title bar for quick access (still learning XY)

Re: File path including character count
Posted: 24 Feb 2013 18:55
by highend
In the title bar? oO Don't think so
But you can use a button in the toolbar, assign a hotkey to the script, put it in the catalog, etc.
Re: File path including character count
Posted: 24 Feb 2013 19:01
by admin
Scripts in the title bar... that could be the next software revolution. Finally title bars that actually
do something...

Re: File path including character count
Posted: 24 Feb 2013 19:48
by CookieMonster
highend wrote:In the title bar? oO Don't think so
But you can use a button in the toolbar, assign a hotkey to the script, put it in the catalog, etc.
I have to look that up in the docs, another idea for a tutorial <where is that guy

>
Re: File path including character count
Posted: 24 Feb 2013 19:49
by CookieMonster
admin wrote:Scripts in the title bar... that could be the next software revolution. Finally title bars that actually
do something...

LOL
It is a good idea, my brain was ahead of my typing so I said "title bars".