check out my latest app: Doodle Draw
and my latest blog post
Check if an app exists on macOS
License: MIT License
check out my latest app: Doodle Draw
and my latest blog post
Issue occurs as part of PR #4, and discovered whilst investigating will-stone/browserosaurus#399
The error is specifically on line 10 of index.js, as node does not expand tildes (nodejs/node#684).
From my limited understanding of node, and testing locally, process.env.HOME has a function equivalent to the tilde, so this should be an easy fix.
Pull request incoming.
Hi, I'm facing an issue when there are multiple user in one mac where every user has their own set of applications.
This might be related to how MacOS works (because Spotlight is facing similar issue), where we can use application installed in another user account.
To fix this, I think this PR (#7) could help. cmiiw
Regards,
Hi Sindre,
I've been using a small function to find installed apps in my Electron-based app, Browserosaurus. I thought I'd try replacing my function with your package but using AppleScript to "tell Finder" causes my app to display a Finder access permission dialog. Would you be up for a refactor of your package to avoid this? Here's what I'm using:
import { execFile } from 'child_process'
import { promisify } from 'util'
const execFileP = promisify(execFile)
async function appExists(nameOrBundleId: string): Promise<boolean> {
const isBundleId = nameOrBundleId.includes('.')
const query = isBundleId
? `kMDItemContentType == 'com.apple.application-bundle' && kMDItemCFBundleIdentifier == '${nameOrBundleId}'`
: `kMDItemKind == 'Application' && kMDItemFSName == '${nameOrBundleId}.app'c`
const { stdout: appPath } = await execFileP('mdfind', [query])
return Boolean(appPath)
}
Let me know if you'd like a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.