Re: Finder weirdness
Re: Finder weirdness
> But what I found (with out going around Robin Hood's barn as above) is that regardless the finder won't find my test file, I can see it in the Finder window and drop it on Quicktime Player, but when I try to reference it in Finder then Finder throws an error. Other files with the same methodology work and I don't know why. Perhaps they are too small?
Is this still an issue? I don't get the Robin Hood's barn analogy here. Are you trying to find a one-line solution? Don't bother, that's not a virtue in AppleScript.
At what point does Finder not see the file, is it after the first rename but before the second? How are you trying to reference it when it generates an error? Using alias should resolve that or rebuilding the file path with the new name should work. The size of the file has no bearing.
Finder does have a few issues with AppleScript, but the kinds of things your doing should work and have been working for years. I don't think the problem is with the Finder. It may be that AppleScript doesn't behave exactly as you expect.
Have you tried to trap the error?
---------
try
--script segment with finder error here
on error errMessage number errNum
display dialog "An error has occurred: " & errNum default answer errMessage
end try
----------
You should be able to copy and paste the error message into an email.
HTH,
ES _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden