• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Has AppleScript changed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has AppleScript changed?


  • Subject: Re: Has AppleScript changed?
  • From: "Stockly, Ed via AppleScript-Users" <email@hidden>
  • Date: Sun, 19 Apr 2020 19:06:50 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=latimes.com; dmarc=pass action=none header.from=latimes.com; dkim=pass header.d=latimes.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lmuR71DRdWdBjFDDsl1+kkF0ATj6XZBfdBYFh0PojWc=; b=BfyMF7nQbYvOpEn5t5hrruTd6Kw94JUofCpLLi9UnbGazZiB81zfb3QGV7CSdYJM2qkXvcijdDqEZZah3+y5BZKefba9Ti+cvVIcG9jrcr11vumgsOzEIc+JkVMDO99tsSeTflP60jxSIu0vId+GV7f0WLnjgxP6TdSQuYbFPaFxODW1j1QibZyN7pBm0SKn+edDkTewUWXQ3HgVHnFBE9M72FwNMRQzJhLQBifEE2T0d1HO0GYAaCcrcwCWuqPKiPES7syNXNjLJJE0w2TQjCQgf6veVbvthXbt+l/UOUEXAN1LxrZXZt4rE370Qq7v+E0YPv5Dddze6tbtZj9+/A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gKg+qKsFjm4VxuZ8cDY7zfcIwEG/pVp5dtbfRAj2XcHsmrP3Ul+xxFjBdTT+dwPpfjr+30eolb6VkhLTPQnUe8yTQRpLr124lqFwXZHJAIACx4xeXx7jfVNDab5jkuEdmOVztMN26qAXQdjlWQcpsOxvuXmqyHjcoY56bAIUb/KOOmp72qKV8twa7oXfnTMfKeHjF2xMtvBFsH2LxJAiU++qJ3eC+tqDUdYmO3XvlmehDLbJ+d8AhBpJfLs3R2ffyWwWm1Tfl6lcWGxyss/jHjMYxurwjl+eQVkY0S21QPHukO4H3LfYBW2cB6Z6qPwWg3ENQK7u+sNC8GI95t3whQ==
  • Thread-topic: Has AppleScript changed?

Yes, each item of the list needs to be a string. The OP script was generating
references.



From: AppleScript Digest <email@hidden>
Reply-To: Yvan KOENIG <email@hidden>
Date: Sunday, April 19, 2020 at 11:57 AM
To: AppleScript Digest <email@hidden>
Subject: Re: Has AppleScript changed?


EXTERNAL SOURCE



Le 19 avr. 2020 à 20:33, Robert Poland via AppleScript-Users
<email@hidden<mailto:email@hidden>> a
écrit :

I haven’t been using Applescript for a while…

I have this simple script that no longer works.
tell application "System Events"
set theWindowList to windows of process "Finder"
display dialog theWindowList
end tell

Can’t make window "scans" of «class pcap» "Finder" of application "System
Events" into type Unicode text.
What am I missing?


No change here.
You missed the fact that display dialog is supposed to treat a string, not a
list.

tell application "System Events"
-- build a list of NAMES of windows, con't list the windows themselves
set theWindowList to name of windows of process "Finder"
display dialog my recolle(theWindowList, ", ")
end tell

#=====

on recolle(l, d)
local oTIDs, t
set {oTIDs, AppleScript's text item delimiters} to {AppleScript's text item
delimiters, d}
set t to l as text
set AppleScript's text item delimiters to oTIDs
return t
end recolle

#=====


Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) dimanche
19 avril 2020  20:55:51





 _______________________________________________
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

References: 
 >Has AppleScript changed? (From: Robert Poland via AppleScript-Users <email@hidden>)
 >Re: Has AppleScript changed? (From: Yvan KOENIG via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: Has AppleScript changed?
  • Next by Date: Re: Table in Word 365
  • Previous by thread: Re: Has AppleScript changed?
  • Next by thread: Re: AppleScript-Users Digest, Vol 17, Issue 40
  • Index(es):
    • Date
    • Thread