OS4 DepotLogo by Liksmaskaren 
(anonymous IP: 3.82.24.132,1235) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (329)
   o Datatype (47)
   o Demo (186)
   o Development (534)
   o Document (21)
   o Driver (88)
   o Emulation (142)
   o Game (861)
   o Graphics (465)
   o Library (94)
   o Network (202)
   o Office (57)
   o Utility (815)
   o Video (61)

Total files: 3902

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Utility » Script » cleanname.lha

CleanName.py

Description: Python script to clean file and drawer names
Download: cleanname.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 1kb
Version: 0.1
Date: 08 Mar 2015
Author: Nick Clover
Submitter: Nick Clover
Category: utility/script
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 9200
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 201  (Current version)
201  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
CleanName.py by Nick (Severin) Clover, 27/02/2015

A script to be called from a filemanager eg. DOpus 4 or 5 to strip
#[]{}()?` characters out of drawer or file names.

Installation:

	Copy the file wherever you want, Python:Scripts/ is recommended.

Dopus5 installtion:

	Create a menu or button, I shall use the lister menu for my example:

	Press RAMIGA-2, in the menu column click add, change "New Name" to
	"Name Cleaner", move it up to where you want then double click it.

	In the function Editor window click on new, change Command to AmigaDOS,
	enter "c:python Python:Scripts/CleanName.py {o}" in the string
	gadget then select CD source, Do all files, Recursive Dirs and Rescan
	source in flags. Assign a key if you want.
	Click Use.

Click save in the Lister Menu window.

Usage:

Dopus:
	Highlight the drawers and/or files you want to clean in the lister and select
	Name Cleaner in the menu.

Shell:
	Ensure the script and executable bits are set.
	Enter: cleanname.py <full path (and filename if required)>

Misc info:

	Partition names are ignored, entries that don't have any of the #[]{}()?`
	characters in them are ignored, trailing slashes are removed for shell
	autocomplete usage when cleaning drawers.

	If a file or drawer with the same name already exists a dot is searched for,
	if found a dash and 4 digit number is added before the dot or if not found
	is added at the end.



Copyright (c) 2004-2018 by Björn Hagström All Rights Reserved