Re: script editor wants to save an unchanged script
Re: script editor wants to save an unchanged script
- Subject: Re: script editor wants to save an unchanged script
- From: Andy Wylie <email@hidden>
- Date: Wed, 21 Nov 2001 23:09:46 +1300
on 21/11/01 8:12 PM, Donald S. Hall at email@hidden wrote:
>
Hi again,
>
>
Can anyone tell why, after running the script below in the Script Editor, I
>
am always asked if I want to save the changes to the script even though I
>
have not made any changes?
I believe Script Editor writes the window position into the script's
resource.
>
>
I thought it might be changing the tids (I want the result to be a comma
>
separated text list at the end of the script.), but this doesn't seem to be the
>
case.
I think you'll get the same result running any script
>
>
--begin script -------------------
>
set {AppleScript's text item delimiters, oldTIDs} to {",", AppleScript's
>
text item delimiters}
>
tell application "Finder"
>
set proclist to name of every process whose visible is true
>
end tell
>
set proclist to proclist as text
>
set AppleScript's text item delimiters to oldTIDs
>
proclist
>
--end script ---------------------
>
whenever I see 'every process whose visible is true' I wonder if it's meant
to filter background apps so I think it's worth mentioning that as we have
the ability to make processes invisible and many use software to do such.
'name of application file of every process'
or
'name of every process whose file type is "APPL"'
will be more reliable
___________________________ Andy