• 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: access violation in OS X 10.10.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: access violation in OS X 10.10.3


  • Subject: Re: access violation in OS X 10.10.3
  • From: Yvan KOENIG <email@hidden>
  • Date: Sun, 03 May 2015 21:46:44 +0200


Le 03/05/2015 à 21:13, Jim Weisbin <email@hidden> a écrit :

Yvan KOENIG <email@hidden> wrote:


(1) We are warned for years that info for is deprecated.

I forgot to ask, if “info for” is deprecated, then what is the recommended way to get info, such as: is this object a folder, a file, an alias, a media file, etc? 

Thanks.


The Finder or System Events which is my preferred choice is able to give us the useful infos about items.

set anObject to (path to desktop as text) & "deselect Numbers.scpt"
set anotherObject to (path to desktop as text) & "Versions as Recovery Tool 9&13"
tell application "System Events"
properties of disk item anObject
(* {
short version:"", 
container:folder "SSD 500:Users:<yourAccount>:Desktop:" of application "System Events", 
path:"SSD 500:Users:<yourAccount>:Desktop:deselect Numbers.scpt", 
file type:"osas", 
volume:"SSD 500", 
physical size:20480, 
URL:"file:///Users/<yourAccount>/Desktop/deselect Numbers.scpt",
 id:"deselect Numbers.scpt,-100,1454963", 
 displayed name:"deselect Numbers.scpt", 
 busy status:false, 
 kind:"AppleScript", 
 creator type:"ToyS", 
 version:"", 
 name extension:"scpt", 
 POSIX path:"/Users/<yourAccount>/Desktop/deselect Numbers.scpt", 
 name:"deselect Numbers.scpt", 
 modification date:date "vendredi 13 février 2015 17:43:43", 
 size:16794, 
 class:file, 
 type identifier:"com.apple.applescript.script", 
 default application:alias "SSD 500:Applications:Utilities:Script Editor.app:" of application "System Events", 
 package folder:false, 
 creation date:date "vendredi 13 février 2015 16:37:55", 
 stationery:false, 
 visible:true, 
 product version:""}*)


properties of disk item anotherObject
(* {
name extension:"", 
volume:"SSD 500", 
package folder:false, 
class:folder, modification date:date "samedi 8 novembre 2014 22:29:36", 
physical size:missing value, 
URL:"file:///Users/<yourAccount>/Desktop/Versions as Recovery Tool 9&13/", 
displayed name:"Versions as Recovery Tool 9&13", 
path:"SSD 500:Users:<yourAccount>:Desktop:Versions as Recovery Tool 9&13:", 
POSIX path:"/Users/<yourAccount>/Desktop/Versions as Recovery Tool 9&13", 
container:folder "SSD 500:Users:<yourAccount>:Desktop:" of application "System Events", 
id:"Versions as Recovery Tool 9&13,-100,1454231", 
size:missing value, 
busy status:false, 
visible:true, 
name:"Versions as Recovery Tool 9&13", 
creation date:date "vendredi 13 juin 2014 16:57:29"} *)


end tell
tell application "Finder"
properties of alias anObject
(*
{class:document file, 
name:"deselect Numbers.scpt", 
index:191, 
displayed name:"deselect Numbers.scpt", 
name extension:"scpt", 
extension hidden:false, 
container:folder "Desktop" of folder "<yourAccount>" of folder "Users" of startup disk of application "Finder", 
disk:startup disk of application "Finder", 
position:{-1, -1}, 
desktop position:{742, 127}, 
bounds:{-33, -33, 31, 31}, 
kind:"AppleScript", 
label index:0, 
locked:false, 
description:missing value, 
comment:"", 
size:16794, 
physical size:20480, 
creation date:date "vendredi 13 février 2015 16:37:55", 
modification date:date "vendredi 13 février 2015 17:43:43", 
icon:missing value, 
URL:"file:///Users/<yourAccount>/Desktop/deselect Numbers.scpt", 
owner:"<yourAccount>", 
group:"(inconnu)",  CAUTION, it's localized
owner privileges:read write, 
group privileges:read only, 
everyones privileges:read only, 
file type:"osas", 
creator type:"ToyS", 
stationery:false, 
product version:"", 
version:""}*)
properties of alias anotherObject
(*
{class:folder, 
name:"Versions as Recovery Tool 9&13", 
index:127, 
displayed name:"Versions as Recovery Tool 9&13", 
name extension:"", 
extension hidden:false, 
container:folder "Desktop" of folder "<yourAccount>" of folder "Users" of startup disk of application "Finder", 
disk:startup disk of application "Finder", 
position:{-1, -1}, 
desktop position:{1222, 49}, 
bounds:{-33, -33, 31, 31}, 
kind:"Dossier", 
label index:3, 
locked:false, 
description:missing value, 
comment:"", 
size:missing value, 
physical size:missing value, 
creation date:date "vendredi 13 juin 2014 16:57:29", 
modification date:date "samedi 8 novembre 2014 22:29:36", 
icon:missing value, 
URL:"file:///Users/<yourAccount>/Desktop/Versions as Recovery Tool 9&13/", 
owner:"<yourAccount>", 
group:"(inconnu)",  CAUTION, it's localized
owner privileges:read write, 
group privileges:read only, 
everyones privileges:read only, 
container window:container window of folder "Versions as Recovery Tool 9&13" of folder "Desktop" of folder "<yourAccount>" of folder "Users" of startup disk of application "Finder"}*)
end tell

But I just discovered that info for is no longer flagged as deprecated in "recent dictionaries"
In fact now the word deprecated is available only once in the dictionary of Standard Additions.

set volume -- Set the sound output and/or input volume
  • [number] -- the sound output volume, a real number from 0 to 7 (This parameter is deprecated; if specified, all other parameters will be ignored.)

As ASCII character and ASCII number are no longer flagged as deprecated I'm at a loss and have no idea of the meaning of these changes.

Yvan KOENIG (VALLAURIS, France) dimanche 3 mai 2015 21:46:08


 _______________________________________________
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

  • Follow-Ups:
    • Re: access violation in OS X 10.10.3
      • From: Shane Stanley <email@hidden>
References: 
 >Re: access violation in OS X 10.10.3 (From: Jim Weisbin <email@hidden>)

  • Prev by Date: Re: access violation in OS X 10.10.3
  • Next by Date: Re: Mail, count of messages
  • Previous by thread: Re: access violation in OS X 10.10.3
  • Next by thread: Re: access violation in OS X 10.10.3
  • Index(es):
    • Date
    • Thread