Tuesday, June 2, 2020

#1 2020-02-29 02:50:38 am

Fredrik71
Member
Registered: 2019-10-23
Posts: 270

⌘... in AppleScriptObjC

Hi All.

Here is trivial question about AppleScriptObjC code here on macscripter.net

I have seen this:

property |⌘| : a reference to current application
set |⌘| : a reference to current application

I do understand what the reference means but more curious why that character.

⌘ <== has many names:

Place of interest sign
Command Key
Apple Key
Clover Key
Open-Apple Key
Splat Key
Pretzel Key
Propeller Key
Looped Square

Search on my Swedish layout keyboard if there was a shortcut... like option + a give 
Nothing...

Checked English keyboard
Nothing...

So what is the story here?, fan of 'Susan Kare'... smile

Smile...

Cheers.


I  have skied the highest mountain without logic, and still its the imagination that take me anywhere. Its the desire of something that matters for any knowledge I have or could learn.


Filed under: looped square

Offline

 

#2 2020-02-29 07:50:09 am

Nigel Garvey
Moderator
From:: Warwickshire, England
Registered: 2002-11-20
Posts: 5204

Re: ⌘... in AppleScriptObjC

It's just a symbol I chose to save having to keep typing out 'current application' and to reduce clutter in my ASObjC scripts. It's not official and there's nothing special about it. It just gives me an impression of "the machinery" when viewed in the AppleScript formatting I use.  smile

One or two people here seem to have adopted it too. Others use the same idea but with a different symbol. But any legal name for a variable will do, although letters don't make such good visual anchors in the code.


NG

Offline

 

#3 2020-02-29 09:34:00 am

Fredrik71
Member
Registered: 2019-10-23
Posts: 270

Re: ⌘... in AppleScriptObjC

Nigel, did you know here in Sweden we use that as an road sign. wink

https://www.transportstyrelsen.se/sv/va … Sevardhet/

I do agree with you, it's nice.

I made text shortcurt of ⌘ in Sweden we call it 'Sedvärdhet'
translated to English.

The mark indicates a point of interest of national interest. The nature of the attraction is stated in connection with the mark



It's also very useful keyword ⌘ to search on this site, if you have not try

Last edited by Fredrik71 (2020-02-29 10:01:38 am)


I  have skied the highest mountain without logic, and still its the imagination that take me anywhere. Its the desire of something that matters for any knowledge I have or could learn.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)