Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6995649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:03:24+00:00 2026-05-27T20:03:24+00:00

I have two questions… Here is a really simple example script which causes an

  • 0

I have two questions…

Here is a really simple example script which causes an error:

System Events got an error: Can’t make item 1 of every application process whose visible = true into type string.

tell application "System Events"
   repeat with appProc in (every application process whose visible is true)
       display dialog appProc
   end repeat
end tell

1- How do I determine the data type of a variable?

This would be helpful for future reference so I can figure out what kind of data type I am dealing with

2- How do I convert the above data type to a string so it displays with display dialog?

I tried adding:

appProc as string

but then I get another error that says:

Can’t make «class pcap» “myapplication” of application “System Events” into type string.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:03:24+00:00Added an answer on May 27, 2026 at 8:03 pm

    To get the data type… use class…

    set a to "some text variable"
    return class of a
    

    Convert to string?… try “as text” or “as string”. It mostly works. However in your case appProc has properties (as Red_menace mentioned) and you want to display its name property…

    display dialog (name of appProc)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two questions: 1) How can I make an array which points to
I actually have two questions regarding exception/error handling in the iPhone app that I
I have two questions. First one is simple: Is there any way to control
I have two questions about DA addressing mode. For example: STMDA R0!, {R1-R7} The
I have two questions.They both are concerning a void in C++,which I am trying
I have two questions on how to write a correct/without error CSS 2.1 stylesheet:
I have two questions. 1) What does a constructor really do? What happens if
I have two questions which make me in trouble. I drap a UIWebView on
I have two questions: I am developing a web system in asp.net mvc with
I have two questions re: visual studio 2008 and post-build events. 1) How do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.