Pages: [1]   Go Down

Author Topic: AppleScript resetter (was Antares Filter)  (Read 15826 times)

Protools5LEGuy

  • Staff Member
  • 2048 MB
  • ******
  • Posts: 2788
AppleScript resetter (was Antares Filter)
« on: February 23, 2015, 03:12:56 PM »


BTW.My 1000th post!!!!

congratulations !!

This is my 1001th and yours was 1111th!   ;D ;D :o 8) ??? ::) :P -afro-

About deleting those files with a script/applescript...
Anyone have script skills in OS9? If it were MS-DOS it could be a batch (.BAT) file
Code: [Select]
cd c:/TheVolumeSettingsFolder/HFSExtentTables/
del *.*
print "It's done"
exit


In OS9 I only know to put things on startup folder.  :-[

Applescript http://en.wikipedia.org/wiki/AppleScript

https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html

Folder actions on AppleScript http://macscripter.net/viewforum.php?id=53

Quote
What types of actions can a Folder Action respond to?
A Folder Action can be configured to execute whenever a folder is opened, closed, or moved.  In addition, Folder Actions can be configured to trigger when items are placed in, or removed from a folder.
You can see the syntax in the Standard Additions dictionary, under the Folder Actions Suite.

AppleScript 1.7 for Mac OS 9 and Classic: Release Notes
http://support.apple.com/kb/TA26821?viewlocale=en_US
https://www-s.acm.illinois.edu/iCal/workshops/applescript/1999/special/os9.html
https://books.google.es/books?id=zQy4mgqIccsC&pg=PT383&lpg=PT383&dq=applescript+OS9&source=bl&ots=se9YvQYKSW&sig=NXVh82s-Q3jh-95GWZq0SXH0fqU&hl=es&sa=X&ei=4MXrVKLmG4n7UqzAgvgL&ved=0CGIQ6AEwBw#v=onepage&q=applescript%20OS9&f=false



« Last Edit: February 24, 2015, 07:37:10 AM by MacTron »
Logged
Looking for MacOS 9.2.4

supernova777

  • Guest
Re: Re: Antares Filter
« Reply #1 on: February 24, 2015, 02:25:19 AM »

what do u want to delete with an applescript?
u just want to delete all files from
: TheVolumeSettingsFolder : HFSExtentTables ?

Quote
For Alias and file specifiers, the path is an HFS path, which takes the form
Code: [Select]
"disk:item:subitem:subsubitem:...:item"

for example,
Code: [Select]
"Hard_Disk:Applications:Mail.app"is the HFS path to the mail application, assuming your boot drive is named "Hard_Disk" -- https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/AppleScriptLanguageGuide.pdf

i would imagine its simple like:
Code: [Select]
tell application "Finder"
    move "Hard_Disk:Folder:Filename.ext" to trash
    empty the trash --(optional)
    display dialog "It's Done"
end tell
« Last Edit: February 24, 2015, 02:54:07 AM by chrisNova777 »
Logged

supernova777

  • Guest
Re: Re: Antares Filter
« Reply #2 on: February 24, 2015, 02:53:30 AM »

heres a wrox book from 2005
Logged

Protools5LEGuy

  • Staff Member
  • 2048 MB
  • ******
  • Posts: 2788
Re: Re: Antares Filter
« Reply #3 on: February 24, 2015, 09:22:01 AM »

what do u want to delete with an applescript?
u just want to delete all files from
: TheVolumeSettingsFolder : HFSExtentTables ?



i would imagine its simple like:
Code: [Select]
tell application "Finder"
    move ": TheVolumeSettingsFolder : HFSExtentTables" to trash
    empty the trash --(optional)
    display dialog "It's Done"
end tell
Maybe as this   ::)    ???  I modded your code to have better paths...

I still have no clear if the folder has to be deleted or the inside files...

I think that are the inside long-name files.
Logged
Looking for MacOS 9.2.4

supernova777

  • Guest
Re: AppleScript resetter (was Antares Filter)
« Reply #4 on: February 24, 2015, 09:36:50 AM »

u need to use an english translator dude.. i think your english is getting worse  :'(
Logged

Protools5LEGuy

  • Staff Member
  • 2048 MB
  • ******
  • Posts: 2788
Re: AppleScript resetter (was Antares Filter)
« Reply #5 on: February 24, 2015, 09:50:10 AM »

u need to use an english translator dude.. i think your english is getting worse  :'(
You posted a code with wrong paths. When I quoted your, I changed paths to  move ": TheVolumeSettingsFolder : HFSExtentTables" to trash

I think your code deletes the hfsextend folder instead of the files inside that folder.

To have it clear for everybody. We want to reset the demos of Antares Kantos, filter, tube, infinity and maybe another. Also Sony Oxford and Waves 4.

Those files from : TheVolumeSettingsFolder : HFSExtentTables has to be deleted + rebuild the desktop

We want an applescript to delete what is inside : TheVolumeSettingsFolder : HFSExtentTables, not the folder itself. Maybe I am wrong. MacTron will put some light on it if I am wrong, I guess
Logged
Looking for MacOS 9.2.4

MacTron

  • Staff Member
  • 2048 MB
  • ******
  • Posts: 2116
  • keep it simple
Re: AppleScript resetter (was Antares Filter)
« Reply #6 on: February 24, 2015, 10:57:05 AM »

We want an applescript to delete what is inside : TheVolumeSettingsFolder : HFSExtentTables, not the folder itself. Maybe I am wrong. MacTron will put some light on it if I am wrong, I guess

Both options give us to the same result. But, deleting "HFSExtentTables" folder it is easiest than deleting the folder content.
Logged
Please don't PM about things that are not private.
Pages: [1]   Go Up
 

Recent Topics