Classic Mac OS Software (Discussions on Applications) > System Utilities & File Management

AppleScript resetter (was Antares Filter)

(1/2) > >>

Protools5LEGuy:

--- Quote from: MacTron on February 23, 2015, 02:53:02 PM ---
--- Quote from: Protools5LEGuy on February 23, 2015, 02:27:50 PM ---
BTW.My 1000th post!!!!

--- End quote ---

congratulations !!

--- End quote ---

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: ---cd c:/TheVolumeSettingsFolder/HFSExtentTables/
del *.*
print "It's done"
exit
--- End code ---


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.
--- End quote ---

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



supernova777:
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: ---"disk:item:subitem:subsubitem:...:item"
--- End code ---


for example,

--- Code: ---"Hard_Disk:Applications:Mail.app"
--- End code ---
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
--- End quote ---

i would imagine its simple like:

--- Code: ---tell application "Finder"
    move "Hard_Disk:Folder:Filename.ext" to trash
    empty the trash --(optional)
    display dialog "It's Done"
end tell

--- End code ---

supernova777:
heres a wrox book from 2005

Protools5LEGuy:

--- Quote from: chrisNova777 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 ?



i would imagine its simple like:

--- Code: ---tell application "Finder"
    move ": TheVolumeSettingsFolder : HFSExtentTables" to trash
    empty the trash --(optional)
    display dialog "It's Done"
end tell

--- End code ---

--- End quote ---
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.

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

Navigation

[0] Message Index

[#] Next page

Go to full version