Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4280 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi, I need help with my script

 

In my file I use the Send Event  cmd /c DEL /Q *.pdf1 "C:pdf" to delete a pdf file in Windows. The file will be located in a folder named PDF in the C: or Macintosh HD. I need to do the same in a Mac 10.8, do I need to create an Apple script in the OS fist? 

 

I appreciate any help or ideas.

Thanks

Posted

I've done this on the mac side in 2 different ways. I used an applescript and a shell script command using the ScriptMaster plugin. Here is a sample code of my Applescript calculation where as the variable $$fullpath uses the volume name path:

 

 

"set theFile to "" & $$fullpath & "" as alias" & ¶ & 
"tell application "Finder" to delete theFile"
 
Hope this helps...
 
Stephen

This topic is 4280 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.