Script errors on different Mac
Script errors on different Mac
- Subject: Script errors on different Mac
- From: "Mike Eddington" <email@hidden>
- Date: Tue, 22 Jun 2004 10:32:20 -0400
Hardcore newbie here...I modified a script (see below)to open a Quark 5
doc and save it as a Quark 4 doc. It runs fine on single and multiple
files on my Mac. I copied the script to another Mac for a co-worker to
use, and when dragging multiple files, it will open and save the first
one, but opens the second and gets stuck, eventually timing out("Apple
event timed out"). I have no idea why it would run fine on my Mac, but
not on another.
Both Macs are running 10.3.4, one a dual G4, one a dual G5.
Any suggestions?
mike
_____
display dialog "Drag files or folders to be processed here"
on open these_items
repeat with i from 1 to the count of these_items
set this_item to (item i of these_items)
set the item_info to info for this_item
if folder of the item_info is true then
process_folder(this_item)
else if (alias of the item_info is false) then
my process_item(this_item)
end if
end repeat
end open
on process_folder(this_folder)
set these_items to list folder this_folder without invisibles
repeat with i from 1 to the count of these_items
set this_item to alias ((this_folder as text) & (item i
of these_items))
set the item_info to info for this_item
if folder of the item_info is true then
process_folder(this_item)
else if (alias of the item_info is false) then
my process_item(this_item)
end if
end repeat
end process_folder
on process_item(this_item)
tell application "Finder"
open item this_item
end tell
tell application "QuarkXPressT"
activate
save document 1 version vers 40
close document 1 saving no
end tell
end process_item
beep
_______________________________________________
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.