Re: The Save command will replace, without asking
Re: The Save command will replace, without asking
- Subject: Re: The Save command will replace, without asking
- From: Michelle Steiner <email@hidden>
- Date: Fri, 7 Oct 2005 14:50:44 -0700
On Oct 7, 2005, at 2:30 PM, Robert Poland wrote:
Michelle,
Your solution looks so simple so I made it more complicated.
set targetfolder to "iMac HD:Users:rpoland:Desktop:"
set myfilename to " test copy"
my validatefilename(myfilename, targetfolder)
on validatefilename(myfilename, targetfolder)
-- error here Can't get every file of "iMac HD:Users:rpoland:Desktop:"
Any clues?
This works for me:
set targetfolder to path to desktop
set myfilename to "ad362.pdf"
my validatefilename(myfilename, targetfolder)
on validatefilename(myfilename, targetfolder)
tell application "Finder"
-- error here Can't get every file of "iMac
HD:Users:rpoland:Desktop:"
files of targetfolder whose name is myfilename
end tell
end validatefilename
I used the name of a file on my desktop instead of the file name you
used.
--
"There's some good in the world, Mr. Frodo, and it's worth fighting
for."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden