Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected Finder window (was: AppleScript-Users Digest, Vol 4, Issue 6)



On 1/3/07 at -0000 kai said this

>tell application "Finder"
>	activate
>	if exists Finder window 1 then
>		set current view of Finder window 1 to list view
>		--do other stuff
>	end if
>end tell
>
>----------------
>
>Does the latter syntax produce a new window on your machine or not?
>
>> As I said before that's a pretty nifty construct, but I'm not sure  
>> how reliable it is and I certainly wouldn't recommend it for  
>> ordinary AppleScripters.
>
>You may have missed Mr. N's comment on this but, since we're clearly  
>now in repeat mode, let's replay a snippet:
>
>>> However, the grammar allows any statement to follow the "to", so  
>>> an "if" is perfectly valid...
>
>The scripting style may not be to your taste, which is fine; don't  
>use it and don't recommend it. However, the suggestion that you're  
>getting strange behaviour from a mild syntactic variation does  
>interest me.
>
>Does anyone else get an unwanted window from any of this?


Not here.
System Version 10.4.8, Applescript Version 1.10.7, Script Debugger Version 4.0.5


JBS
-- 
Depression is merely anger without enthusiasm.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Unexpected Finder window (was: AppleScript-Users Digest, Vol 4, Issue 6) (From: kai <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.