Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you add file extensions to a bunch of files at once?
#11
freeradical wrote:
Finder Scripts

Did you not read the original post? Finder Scripts don't exist any more in Lion, and that's why I posted!

:banghead:

After much digging, it appears that the remaining files are old AppleWorks 5 files, and Pages won't touch 'em. Word can recover the text, but it's pretty mangled. Oh well....
Reply
#12
Probably could even do it with a shell script, but you'd best be served on that front by asking in a unix forum.
g=
Reply
#13
john-o wrote:
[quote=freeradical]
Finder Scripts

Did you not read the original post? Finder Scripts don't exist any more in Lion, and that's why I posted!

:banghead:

After much digging, it appears that the remaining files are old AppleWorks 5 files, and Pages won't touch 'em. Word can recover the text, but it's pretty mangled. Oh well....

Does the Apple Script Menu no longer exist, or just the Finder Scripts that were under that menu?

The reason I ask, is because I'm running SL, and Finder Scripts were taken out of SL. I had to download the scripts off the web.
Reply
#14
Here they are if you want them.




Just right click, and download the "image" to get them zipped up.

Unzip, and place in the /Library/Scripts folder
Reply
#15
The menu is gone, but Scripts contains some old stuff... Folder Actions and the like. Your link is broken though...
Reply
#16
john-o wrote:
The menu is gone, but Scripts contains some old stuff... Folder Actions and the like. Your link is broken though...


The link is fine; it just looks broken because the file is not an "image". Just control click and "download image"
Reply
#17
Thanks! Got it... Too bad there isn't a script for "Convert old AppleWorks 5 file with stripped resource fork to Word or Pages file"...

:confused:

G'night!
Reply
#18
.
Reply
#19
Renamer 4 is on sale for $10 at MacZot http://www.maczot.com/
Reply
#20
This AppleScript will display the file type and creator of any file that has one.

set my_file to (choose file)
set file_info to info for my_file

display dialog
Name:
& (name of file_info) &
&
&
Type:
& (file type of file_info) &
Creator:
& (file creator of file_info)


This AppleScript will sort files from a folder into sub-folders based upon type.

It should be pretty obvious where to change the types or add new types and folders.

set target_folder to (choose folder)

tell application
Finder

try
set wrd_folder to (make new folder at target_folder with properties {name:
WORD
})
set rtf_folder to (make new folder at target_folder with properties {name:
RTF
})
set email_folder to (make new folder at target_folder with properties {name:
E-MAIL
})
end try

set file_list to (every item of target_folder)
set folder_list to name of every folder of target_folder
set no_items to count of file_list

repeat with i from 1 to no_items
set the_file to item i of file_list as alias
set file_info to info for the_file
if folder_list does not contain (name of file_info) then
if file type of file_info contains
doc
then move the_file to folder
WORD
of target_folder
if file type of file_info contains
rtf
then move the_file to folder
RTF
of target_folder
if file type of file_info contains
eml
then move the_file to folder
E-MAIL
of target_folder
end if
end repeat

end tell

There shouldn't be any problems, but use the script on a copy of the folder just in case.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)