RE: Prob w/Jons Commands & Novell
RE: Prob w/Jons Commands & Novell
- Subject: RE: Prob w/Jons Commands & Novell
- From: Jon Pugh <email@hidden>
- Date: Tue, 2 Sep 2003 22:11:22 -0700
At 9:24 AM -0500 9/2/03, email@hidden wrote:
>
script walker
>
on open theFile
>
with timeout of 30000 seconds
>
tell application "Finder"
>
if exists alias theFile then
>
activate
>
display dialog "I See File: " & return & return & theFile
>
end if
>
end tell
>
end timeout
>
end open
>
end script
>
>
on open (theFiles)
>
walk folders theFiles with script walker without invisibles
>
end open
Try this and tell us what you see when you hit your errant file:
script walker
on open theFile
set itExists to false
set theFileString to theFile as string
tell app "Finder"
try
set itExists to exists theFile
on error m number n
display dialog theFileString & return & m & return & n
end
end
end
In your example, you were using "alias theFile" but considering that theFile is already an alias, which Jon's Commands passed to your handler, that doesn't make much sense. I coerced a copy of the alias into a string, so we can see if that's where it's failing. Then I used a try block to catch any errors that the Finder's exists event reports.
This should tell you what is happening, although you still might not know what it means. Report back and we'll see what we can decipher from the Novell error number.
Jon
_______________________________________________
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.