• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Recognize SO Windows, Mac

Advocate ,
Oct 29, 2017 Oct 29, 2017

Copy link to clipboard

Copied

Good morning

I work for 2 pcs

one windows and one mac

I use many scripts

unfortunately a few times it sucks me that windows works fine but not mac

or on mac well and on windows no

there would be a possibility that if a script runs on windows part of a script

if instead of another part of the mac?

Thank you

TOPICS
Actions and scripting

Views

616

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Oct 29, 2017 Oct 29, 2017

It's definitely possible, e.g.

if ($.os.match(/windows/i)) {

  // Windows stuff

} else {

  // Mac stuff

}

HTH,

Davide

Votes

Translate

Translate
Adobe
Engaged ,
Oct 29, 2017 Oct 29, 2017

Copy link to clipboard

Copied

It's definitely possible, e.g.

if ($.os.match(/windows/i)) {

  // Windows stuff

} else {

  // Mac stuff

}

HTH,

Davide

Davide Barranca - PS developer and author
www.ps-scripting.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 29, 2017 Oct 29, 2017

Copy link to clipboard

Copied

LATEST

Thank you David.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines