-
All replies
-
Helpful answers
-
-
Apr 5, 2013 8:13 PM in response to donumregisby pjdube,Here it is. You can get it from MacScripter:
on run
doyourduty(choose file with multiple selections allowed)
end run
on open droppedItems
doyourduty(droppedItems)
end open
on doyourduty(theItems)
repeat with anItem in theItems
tell application "Finder"
set {name:fileName, name extension:nameExtension, class:itemClass, container:parentFolder} to item (anItem as text)
set isFolder to itemClass is folder
end tell
if isFolder then
tell application "Finder" to set itemList to items of anItem
doyourduty(itemList)
else
if nameExtension is "cwk" then
tell application "Pages"
open (anItem as alias)
-- Save file to folder that dropped file exists in.
set docPathAndName to (parentFolder as text) & text 1 thru -4 of fileName & "pages"
save front document in docPathAndName
close front document
end tell
end if
end if
end repeat
end doyourduty
-
-
Apr 6, 2013 10:13 AM in response to donumregisby Peggy,Yvan sent me two AppleScripts that should work for you. I put them in the AppleWorks folder on my Box.com account. If you have any questions, please post back.
-
Apr 13, 2013 10:04 AM in response to Peggyby donumregis,Dear Peggy, Thank you so much for your help. I have been away from the computer and won't be back at my father's computer to use the AppleScripts in your box until late this May. I will let you know how it works then. Thanks again!
Brian
-
Apr 13, 2013 10:42 AM in response to donumregisby Peggy,Yvan has now uploaded all of his AppleWorks scripts to his box account here. There are so many it runs to two pages. One on the second page to determine what kink of Apple document a file is would be very useful to many users.