I have created my AppleScript, tested it, saved it as an .app and it works.
Now, how do I set a custom icon for it?
I have done a bit of googling and tried a few different things but cannot get it to work. The app is mainly for me and maybe some people I know to make workflows easier so having a nice little icon makes a huge difference.
Can anyone help with this please?
Basically you need an .icns icon file.
Open your application with right-click > Show Package Contents
Navigate to Contents > Resources
Delete applet.icns
Drag the custom icon file into the Resources folder
Rename the icon file in Resources to applet.icns
To update the icon appearance open and re-save the applet in Script Editor.
This is how I do it:
In Finder, select your icon file.
Get Info (CMD-I) on the file.
Click the icon in the top left corner of the Get Info window.
Copy it via CMD-C.
Now Get Info on your AppleScript file.
Click the icon in the top left corner of the Get Info window.
Paste the icon using CMD-V.
The AppleScript icon should be replaced by the icon copied from the icon file.
A screen recording demonstrating this process can be viewed at this answer from AskDifferent.
Just building into #pipwerks answers: You can also use Drag&Drop!
(Optional) Create your icon online from any image on https://iconverticons.com/online/ and download de .icns file for your icon.
Get Info (CMD-I) on you AppleScript file.
Now Drag&Drop your .icns file into the small icon in the top left corner.
It works and now it's ready to add it to the dock or wherever you want.
On newer systems if the above methods do not work there is another solution.
In Script Editor, after opening our script (.app), choose View -> Show Bundle Contents from the menu (or press cmd +0).
In the panel that will expand on the right (Bundle Info) in the Resources section, right-click the applet.icns file and select delete from the drop-down menu.
Our new icon file with the same name applet.icns drag and drop into the window Resources where you just deleted it.
Save application and voila :-D
Here's another way on newer systems, I'm using macOS 12.1.
Open the new icon image file in Preview and choose File > Export...
Hold down the Option key while selecting "Format" and see a whole bunch of new choices including ICNS.
Save it, drop it in your Resources folder, and you're good to go.
Related
I installed the 'Image and 3D model editors' component, but when I click on a .png (icon) file from my Xamarin Forms solution, I get this pop up error:
There is no editor available for
'C:\Users\...\MySolution\MyProject.Android\Resources\mipmap-xxxhdpi\launcher_foreground.png'.
Make sure the application for the file type (.png) is installed.
Do I also have to enable the component somewhere? What am I missing here?
EDIT: If I right click on the image and 'Open With...', then I get these options:
The first (Default) option would give me this:
Try to right click your image file,and select Open With... -> Graphics Designers.
Then you will open the image with the Image Editor.
I'm working on new website (all modules are up to date) but for some reason IMCE file browser is not working well. For image fields in my content types for "file sources" I also check "IMCE file browser".
Then when I'm creating node in that type if I just upload file standard way it works well. But if I want to use IMCE file browser and select already uploaded image it all works up to last step. I click "File browser", then "browse" link, browser's popup appears, I select image, then click "Insert file" (or click on image preview - makes no difference), popup closes, but selected image is not inserted into my file field.
What can cause this behavior?
I had a simillar issue and following these steps made it work for me.
Try the following:
Clear your drupal cache. This can often solve the problem as some items may not have been cached yet.
Keep the Chrome Developer Console open to see if there are any JS errors which may hint at the problem.
In your CKEditor settings, make sure you tick "Plugin for inserting files from IMCE without image dialog"
Ensure that the input field is using Full HTML
If the above does not help try reinstalling IMCE and your WYSIWYG Editor such as CKEditor
I hope this helps.
I think this should be a relatively easy one to answer, I hope, but is proving to be a bit of a stress!
I have used an Icon on an old application developed some years ago and I would now like to use the icon for a current project.. however..
I added the icon using the upload/import icon-image in the properties window, and did not add it in the project resources file, nor specify its location anywhere in my code, using only the icon tool in the properties window.
Now wanting to find the icon image file to use again, I cannot find it anywhere! I have trawled through all the project files looking for the image file or a ref to its location, but have found nothing; except for:
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
When running the application the icon is still clearly visible in the applications taskbar tile.
Does anyone know where the icon file is stored / how I can retrieve it?
Thank you in advance.
It is stored in "{Your_project_name}.{Form_name}.resources" file. Search inside the "obj" folder which is in your project folder.
Now open the command prompt of Visual Studio. We will convert this ".resources" file into a ".resx" file. We use "resgen" command here.
resgen foo.resources bar.resx
The .resx can then be added to a C# project. You can find your icon file there.
I have a project where a couple of files are in red, In XCode 3 I used to click the file Get Info and change the Path, but I have no idea how to do it in the new XCode 4.
Click on your file, and then open the right side pane (there is a button in the top right corner). There you will see Identity and Type. Under the location drop down there is a small icon of I'm not sure what. If you click it, it lets you choose a file. I think that is what you want.
My method of choice is to just drag in the files from the new location and delete the references to the ones in the old location.
Is it possible to add custom icon to hta? What I mean is change the default hta file icon, which is "System Application Icon". Can it be done without assigning new icon to the extension, and not using shortcuts to the file ?
Like this
WinRAR can help you do that.
Package your hta & icon file to exe;
In options,
a. select "silent" extract;
b. set extract path;
c. create extract path and then put that icon file there, select icon in this path.
d. set run your hta(c:\your_path\your.hta) after exe file extracted.
(i could not provide more detail because i don't have WinRAR installed right now, it's a common way to add icon for hta.)
Every time user run the exe you created, it will just extract hta, icon to the path you specified, and then run your hta. the exe file will have the icon display, even copy to another computer.
If you get all work done correctly, you will get a exe file with the icon you defined.
BTW, you can also try google: hta exe icon
Good luck!
Yup, you sure can: this. You embed the icon in the hta file
Better You use Exescript Software
It's Good because ease of its use and add icon to resource file (which appears on top border of hta)
After that add icon in settings menu to Exe File and build the project
U will get a exe file with custom icon.