Moving a file and changing its name in X
Moving a file and changing its name in X
- Subject: Moving a file and changing its name in X
- From: Leif Skoog <email@hidden>
- Date: Tue, 25 Feb 2003 09:36:07 +0100
Hi,
I have this silly little problem. I this script it works in Mac OS 9. When I
try to move it to Mac OS X (jaguar) it will work until the very last part.
The file Bild 1 is selected but I want it to change name and move to another
location. How do I go about?
Script goes like this:
on open (this_folder)
set these_items to list folder this_folder without invisibles
try
repeat with i from 1 to the count of these_items
set this_item to (item i of these_items)
set this_item to alias ((this_folder as text) & (item i of
these_items))
process_item(this_item)
end repeat
end try
end open
on process_item(this_item)
tell application "Pict2Ascii"
activate
set font to "Courier"
set font size to 12
set auto contrast to true
set optimize for printer to false
set allow high ASCII to true
open this_item
set position of window 1 to {17, 47}
set bounds of window 1 to {17, 47, 874, 574}
+event JonsFKEY; 3
close window 1 saving no
end tell
tell application "Finder"
set new_pict to select file "Mac OS X:Bild 1"
set name of selection to this_item
move selection to folder "Dokument:LS:Video:Pict"
end tell
end process_item
I'm doing a video of a Tom and Jerry cartoon in ascii, that's also kind of
silly. But I need your help anyways.
Leif
--
Leif Skoog
Nordhemsgatan 43 A
413 06 Gvteborg
031-426614
0706-726614
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.